• 제목/요약/키워드: Radix sort

검색결과 6건 처리시간 0.019초

가상의 기수계수버킷 정렬 (Virtual Radix Counting Bucket sort)

  • 이상운
    • 한국인터넷방송통신학회논문지
    • /
    • 제15권6호
    • /
    • pp.95-102
    • /
    • 2015
  • 데이터를 정렬하는 방법들 중 O(nlogn)보다 빠른 방법은 알려져 있지 않고 있으며, 가장 빠른 방법으로 퀵정렬이 있으며, 이 정렬법은 n개의 데이터에 대해 최적과 평균의 경우 O(nlogn), 최악의 경우$O(n^2)$ 수행 복잡도를 갖고 있다. 본 논문에서는 리스트를 기수 숫자별로 빈도수를 계수하여 해당 가상 버킷에 저장하는 가상분할방법을 적용하였다. 또한 추가적인 메모리를 최소화시키기 위해 리스트 상에서 해당 버킷에 데이터들을 이동시키는 방법을 적용하였다. 제안된 알고리즘은 주어진 숫자의 자리수 k만큼 분할되며, 각 자리수에 대해 수행복잡도가 O(n)으로 O(kn) 알고리즘이다.

빠른 계수 정렬법의 제안 (Proposal of Fast Counting Sort)

  • 이상운
    • 한국인터넷방송통신학회논문지
    • /
    • 제15권5호
    • /
    • pp.61-68
    • /
    • 2015
  • 데이터를 비교 정렬하는 방법들 중 O(nlogn)보다 빠른 방법은 알려져 있지 않고 있으며, 가장 빠른 퀵 정렬법은 최적과 평균의 경우 O(nlogn), 최악의 경우 $O(n^2)$ 수행 복잡도를 갖고 있다. 본 논문은 비교 정렬법이 아닌 O(n+k),(k=최대치)의 계수 정렬법을 보다 빠르게 수행하는 O(n+k)의 단순 계수정렬법과 데이터의 자리 수 l의 숫자별 빈도수를 계수하여 해당 가상 버킷에 저장하는 O(ln)의 기수 계수 정렬법을 제안하였다. 6개의 실험 데이터에 제안된 알고리즘을 적용한 결과, 퀵 정렬의 O(nlogn) 또는 $O(n^2)$을 O(n+k) 또는 O(ln)으로 단순화 시킬 수 있었다. 결론적으로 제안된 방법은 계수정렬법과 퀵 정렬법에 비해 보다 빠른 방법이다.

질박어혈통(跌撲瘀血痛)의 방제(方劑)와 약물(藥物)의 문헌적(文獻的) 고찰(考察) (A literatural study on herb medicine for external wound)

  • 장기숙;오민석
    • 혜화의학회지
    • /
    • 제9권1호
    • /
    • pp.691-710
    • /
    • 2000
  • We came to the conclusion after considering all the information from many kinds of book on herb medicine which is treatment method of "quickening blood and transforming stasis" for external wound. 1. Angelicae sinensis Radix and Angelicae Gigantis Radix are account for 16%(57times) of monarch drug and ministerial drug in all. It means that effect of "quickening blood and transforming stasis" of Angelicae sinensis Radix and Angelicae Gigantis Radix are more excellent than any other herb medicine. 2. In the case of the monarch drug, Angelicae sinensis Radix and Rhizoma Rhei are used at most, treatment method is divided into "expel stasis" and "quickening blood and transforming stasis". 3. In the case of the monarch drug, there are Dolomitum, Eupolyphaga, Dracinis Resina, Crinis Carbonisatus, Acronychiae Ligum, Pini Ramulus etc which have strong treatment effect and pecunliar sort. 4. In the case of the ministerial drug, there are Dracinis Resina, Brassica Rapa, Pyritunm, Liquidambaris Resina etc which are unusual sort. 5. In the order of frequency in use of monarch drug and ministerial drug in nature, it is hot, mean, cold drug. In the order of frequency in use of monarch drug and ministerial drug in flavors, it is sharp, pungent, sweat.

  • PDF

역방향 레딕스 방식에 위한 고속 하드웨어 정렬기의 설계 및 구현 (A Design and Implementation of High Speed Hardware Sorter with Reverse Radix Method)

  • 박희순;전종연;김희숙
    • 한국정보처리학회논문지
    • /
    • 제3권4호
    • /
    • pp.992-1001
    • /
    • 1996
  • 레딕스 정렬 방식은 알고리즘이 단순하며 하드웨어 구현이 비교적 용이하다는 장점이 있으나, 정렬할 데이터를 2회의 탐색과정을 통해 논리 정보 0과 1을 구분 저장 한다는 단점이 있다. 본 논문은 레딕스 정렬에 있어 2회의 탐색을 1회로 줄이고 논리 0의 정보는 하위 주소로 부터 오름차순으로, 논리 1의 정보는 하위 주소로부터 내림차 순으로 저장하도록 하여 분류 소도를 높이는 새로운 알고리즘을 개발하고 이를 하드 웨어로 구현 한 후 그 실험 결과에 대하여 설명한다. 구현된 하드웨어는 별도의 메모리, 레지스터, 카운터, 비교기 등으로 구성된다. 본 논문의 시뮬레이션에서 소프 트웨어 방법은 8비트 데이터 만개를 정렬하는데 54.9ms가 소모되고, 하드웨어 방법은 5.3ms의 시간이 소모되었다.

  • PDF

DNA Fragment Assembly에서$\kappa^-$글자 테이블의 정렬 (Sorting $\kappa^-mer$ Table in DNA Fragment Assembly)

  • 홍순철;박근수
    • 한국정보과학회:학술대회논문집
    • /
    • 한국정보과학회 2002년도 가을 학술발표논문집 Vol.29 No.2 (1)
    • /
    • pp.733-735
    • /
    • 2002
  • DNA fragment assembly 프로그램인 Phrap에서는 exact match를 찾기 위해 정렬된 k-글자 테이블 자료구조를 사용한다. 이것은 접미사 배열의 간단한 형태로서, DNA fragment assembly와 같은 응용에서는 접미사 배열보다 더 유용한 자료구조이다. 본 논문에서는 k-글자 테이블을 정렬하는 Manber-Myers, Quicksort, Radix sort 알고리즘을 살펴보고, 실험을 통해 그 중에서 가장 뛰어난 성능을 가지는 것이 Quicksort 알고리즘임을 보였다 또한 k-글자 테이블의 정렬 문제에 있어서는, 캐쉬-메모리 아키텍쳐에 최적화되어 계산복잡도 속에 숨어있는 상수를 최소화하는 것이 중요한 문제임을 밝힌다.

  • PDF

"삼국사기(三國史記)"에 기록된 의약내용(醫藥內容) 분석 (Study on Medical Records In ${\ulcorner}$the Historical Records of the Three Kingdoms${\lrcorner}$)

  • 신순식;최환수
    • 제3의학
    • /
    • 제2권1호
    • /
    • pp.35-54
    • /
    • 1997
  • We tried to observe the features of ancient medical practice by analysing the records related to medicine in the book, ${\ulcorner}$the Historical Records of the Three Kingdom${\lrcorner}$ of which content includes the features of medicine in mythology, plague, delivery of twins, drugs, medical system, shamanism, constitutional medicine, psychiatry, forensic medicine, deformity, a spa, medical phrase, health and welfare work, religion, death. physiological anatomy, Taoist medicine, acupuncture, the occult af of transformation and etc. Our initial concern was about where to draw line as of medical field and we defined medicine in more broad meaning. The book ${\ulcorner}$the Historical Records of the Three Kingdoms${\lrcorner}$ describes the world of mythology by way of medicine which is not clearly a conventional one. There appears records of birth of multiple offsprings 7 times in which cases are of triplets or more. Delivering multiple offsprings were rare phenomenon though such fertility was highly admired. This shows one aspect of ancient country having more population meant more power of the nation. Of those medical records conveyed in that book includes stories of childbirth such as giving birth to a son after praying, giving birth to Kim Yoo-shin after 20 months after mother's dream of conception, and a song longing for getting a laudable child. Plagues were prevalent throughout winter to spring season and one can observe various symptoms of plagues in the record. Of these epidemic diseases, cold type might have been more common than the heat one. Appearance of epidemic diseases frequently coincided with that of natural disasters that this suggests a linkage between plague and underlying doctrine on five elements' motion and six kinds of natural factors. There exists only a few names of diseases such as epidemic disease, wind disease, and syndrome characterized by dyspnea. Otherwise there appeared only afflictions that were not specified therefore it remains cluless to keep track of certain diseases of prevalence. Since this ${\ulcorner}$Historical Records of the Three Kingdoms'${\lrcorner}$ wasn't any sort of medical book, words and terms used were not technical kind and most were the ones used generally among lay people. Therefore any mechanisms of the diseases were hardly mentioned. Some of medicinal substances such as Calculus Bovis, Radix Ginseng, Gaboderma Luciderm, magnetitum were also in use in those days. 53 kinds of dietary supplies appears in the records and some of these might have been used as medicinal purpose. Records concerning dicipline of one's body includes activities such as hunting, archery, horseback riding etc. In Shilla dynasty there were positions such as professor of medicine, Naekongbong(內供奉), Kongbong's doctor(供奉醫師), Kongbong's diviner(供奉卜師). As an educational facility, medical school was built at the first year of King Hyoso's reign and it's curricula included various subjects as ${\ulcorner}$Shin Nong's Herbal classic${\lrcorner}$, ${\ulcorner}$Kabeul classic of acupuncture and moxbustion${\lrcorner}$, ${\ulcorner}$The Plain Questions of the Yellow Emperor's Classic of Internal Medicine${\lrcorner}$, ${\ulcorner}$Classic of Acupuncturer${\lrcorner}$, ${\ulcorner}$The Pulse Classic${\lrcorner}$, ${\ulcorner}$Classic of Channels and Acupuncture Points${\lrcorner}$ and ${\ulcorner}$Difficult Classic${\lrcorner}$. There were 2 medical professors who were in charge of education. To establish pharmacopoeia, 2 Shaji(舍知), 6 Sha(史), 2 Jongshaji(從舍知) were appointed. In Baekje dynasty, Department of Herb was maintained. Doing praying for the sake of health, doing phrenology also can be extended to medical arena. Those who survived over 100 years of age appear 3 times in the record, while 98 appears once. The earliest psychiatrist Nokjin differentiated symptoms to apply either therapies using acupuncture and drug or psychotherapy. There appears a case of rape, a case of burying alive with the dead, 8 cases of suicide that can characterize a prototype of forensic medicine. Deformity-related records include phrases as follow: 'there seems protrudent bone behind the head', 'a body which has two heads, two trunks, four arms.', 'a body equipped with two heads' In those times spa can be said to be used as a place for he리ing, convalescence, and relaxation seeing the records describing a person pretended illness and went to spa to enjoy with his friends. Priest doctors and millitary surgeons were in charge of the medical sevice in the period of the Three Kingdoms by the record written by Mookhoja(墨胡子) and Hoonkyeom(訓謙). Poor diet and regimen makes people more vulnerable to diseases. So there existed charity services for those poor people who couldn't live with one's own capacity such as single parents, orphans, the aged people no one to take care and those who are ill. The cause of affliction was frequently coined with human relation. There appeared the phenomenon of releasing prisoners and allowing people to become priests at the time of king's suffering. Besides, as a healing procedure, sutra-chanting was peformed. There appears 10 cases of death related records which varies from death by drowning, or by freezing, death from animals, death from war, death from wightloss and killing oneself at the moment of spouse's death and etc. There also exist certain records which suggest the knowledge of physiology and anatomy in those times. Since the taoist books such as ${\ulcorner}$Book of the Way and Its Power(老子道德經)${\lrcorner}$ were introduced in the period of Three Kingdoms, it can be considered that medicine was also influenced by taoism. Records of higher level of acupuncture, records which links the medicine and occult art of transformation existed. Although limited, we could figure out the medical state of ancient society.

  • PDF