Sort Race

نویسندگان

  • Hantao Zhang
  • Baoluo Meng
  • Yiwen Liang
چکیده

Sorting is one of the oldest computing problems and is still very important in the age of big data. Various algorithms and implementation techniques have been proposed. In this study, we focus on comparison based, internal sorting algorithms. We created 12 data types of various sizes for experiments and tested extensively various implementations in a single setting. Using some effective techniques, we discovered that quicksort is adaptive to nearly sorted inputs and is still the best overall sorting algorithm. We also identified which techniques are effective in timsort, one of the most popular and efficient sorting method based on natural mergesort, and created our version of mergesort, which runs faster than timsort on nearly sorted instances. Our implementations of quicksort and mergesort are different from other implementations reported in all textbooks or research articles, faster than any version of the C library qsort functions, not only for randomly generated data, but also for various types of nearly sorted data. This experiment can help the user to choose the best sorting algorithm for the hard sorting job at hand. This work provides a platform for anyone to test their own sorting algorithm against the best in the field.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Making Race Out Of nOthing: PsychOlOgically cOnstRained

Race is one of the most common variables in the social sciences, used to draw correlations between racial groups and numerous other important variables such as education, health care outcomes, aptitude tests, wealth, employment and so forth. But where concern with race once reflected the view that races were biologically real, many, if not most, contemporary social scientists have abandoned the...

متن کامل

UPC-SPIN: A Framework for the Model Checking of UPC Programs

This paper presents a method supported by a software framework for the model checking of Unified Parallel C (UPC) programs. The proposed framework includes a front-end compiler that generates finite models of UPC programs in the modeling language of the SPIN model checker. The model generation is based on a set of sound abstraction rules that transform the UPC synchronization primitives to sema...

متن کامل

Children's Racial Categorization in Context.

The ability to discriminate visually based on race emerges early in infancy: 3-month-olds can perceptually differentiate faces by race and 6-month-olds can perceptually categorize faces by race. Between ages 6 and 8 years, children can sort others into racial groups. But to what extent are these abilities influenced by context? In this article, we review studies on children's racial categorizat...

متن کامل

Social Barriers to Cooperation: Experiments on the Extent and Nature of Discrimination in Peru

We present a series of experiments to understand the nature and extent of discrimination in urban Lima, Peru. The experiments exploit varying degrees of information on performance and personal characteristics as people sort into groups to test for statistical versus taste-based discrimination. This allows us to examine the nature of discrimination. Our sample is similar to the racial and socio-...

متن کامل

Narrating September 11: Race, Gender, and the Play of Cultural Identities.

This article considers the September 11 tragedy as an event that has created a powerful experience-an astonishing and unthinkable "breach" from the expected and routine-that has riveted the American public and provoked personal storytelling. September 11 and its aftermath have provided an occasion for rethinking and reworking cultural identity. We explore how September 11 and subsequent events ...

متن کامل

All that you can be: stereotyping of self and others in a military context.

The authors tested the shifting standards model (M. Biernat, M. Manis, & T. E. Nelson, 1991) as it applies to sex- and race-based stereotyping of self and others in the military. U. S. Army officers attending a leadership training course made judgments of their own and their groupmates' leadership competence at 3 time points over a 9-week period. We examined the effects of officer sex and race ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1609.04471  شماره 

صفحات  -

تاریخ انتشار 2016