• Title/Summary/Keyword: Radix sort

Search Result 6, Processing Time 0.022 seconds

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

  • Lee, Sang-Un
    • The Journal of the Institute of Internet, Broadcasting and Communication
    • /
    • v.15 no.6
    • /
    • pp.95-102
    • /
    • 2015
  • Generally, there is no sorting algorithm much faster than O(nlogn). The quicksort has a best performance O(nlogn) in best and average-case, and $O(n^2)$ in worst-case. This paper suggests virtual radix counting bucket sort such that counting the frequency of numbers in each radix digit, and moves the arbitrary number to proper virtual bucket in the array, and divides the array into radix digit numbers virtually. Also, this algorithm moves the data to proper location within an array for using the minimum auxiliary memory. This algorithm performs k-times such that the number of k digits in given data and the time complexity is O(n). Therefore, this algorithm has a O(kn) time complexity.

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

  • Lee, Sang-Un
    • The Journal of the Institute of Internet, Broadcasting and Communication
    • /
    • v.15 no.5
    • /
    • pp.61-68
    • /
    • 2015
  • Among comparison sorts, no algorithm excels a current set lower bound of O(nlogn) in operation. Quicksort, the fastest of its kind, has a complexity of O(nlogn) at its best and on average and $O(n^2)$ at worst. This paper thus presents two methods: first is an O(n+k) simple counting sort which operates much more speedily than an O(n+k), (k=maximum value) counting sort, and second is an O(ln) radix counting sort which counts the frequency of numbers in the digit l of a data and saves it in a corresponding virtual bucket in an array, only to virtually divide the array into radix digit numbers. For the 6 experimental data, the proposed algorithm makes O(nlogn) or $O(n^2)$ of Quicksort simple into O(n+k) or O(ln). After all, the proposed sorting algorithm has proved to be much faster than the counting sort and Quicksort.

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

  • Chang, Gi-sug;Oh, Min Suk
    • Journal of Haehwa Medicine
    • /
    • v.9 no.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 (역방향 레딕스 방식에 위한 고속 하드웨어 정렬기의 설계 및 구현)

  • Park, Hui-Sun;Jeon, Jong-Yeon;Kim, Hui-Suk
    • The Transactions of the Korea Information Processing Society
    • /
    • v.3 no.4
    • /
    • pp.992-1001
    • /
    • 1996
  • Radix sort scans the data twice in a pass, to search bit 0s of the items being sorted and store them into the lowest address, and to search bit 1s and st ore them into the following addresses. This doubles the sorting time. In this paper, we introduce Reverse Radix Sort Algorithm, in which the data being sorted are sacnned just once and write upward from the lowest address if it is 0 and downward from the highest address if it is 1. The algorithm is simple and the hardware sorter implemented by this method shows very high sorting sped. Hardware implementation requires two separate pocket memories, register, an upward increasing address counter, a downward decreasing address counter, and comparator. The software simulation of Reverse Radix Sor Algorithm performs sorting in the speed of 54.9ms per 10 thousand of 8 bit digit data, but the hardware sorter spends 5.3ms to sort the same number of data.

  • PDF

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

  • 홍순철;박근수
    • Proceedings of the Korean Information Science Society Conference
    • /
    • 2002.10c
    • /
    • 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}$ ("삼국사기(三國史記)"에 기록된 의약내용(醫藥內容) 분석)

  • Shin, Soon-Shik;Choi, Hwan-Soo
    • Journal of The Association for Neo Medicine
    • /
    • v.2 no.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