Skip to content

๐Ÿ“ถ An Inefficient Sorting Algorithm Written In C.

Notifications You must be signed in to change notification settings

surajkareppagol/BESort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

BE Sort

A ๐Ÿ“ถ sorting algorithm inspired by quick sort.This program is created in C language.

BESort

How it works ?

There are two pointers (Not actual C pointers, just normal variables) pointElementI and pointElementJ, it works in two stages, in first stage the pointElementI is fixed and in second stage pointElementJ is fixed, but in both stages i is incremented and j is decremented.

To explain this i have created these ๐Ÿ‘‡, the red colored star indicates a new stage within the main stage, at this stage i again points to it's initial value, but j is decremented in first stage and vice versa.

How to use it ?

You can use this program in your projects to sort numbers, if you want to test it pass -t option.

./besort -t

Is it better ?

I have tested it for different set of random numbers, for 1000, it took about 0.002498 and quick sort took about 0.000580.

Stage One

BESort

BESort

BESort

Stage Two

BESort

BESort

BESort

About

๐Ÿ“ถ An Inefficient Sorting Algorithm Written In C.

Topics

Resources

Stars

Watchers

Forks

Languages