Research Article

A New Sorting Algorithm with filling to the left and right

Volume: 3 Number: 3 December 30, 2015
  • Naiden Borisov Vasilev
  • Atanaska Dimitrova Bosakova Ardenska
EN

A New Sorting Algorithm with filling to the left and right

Abstract

This paper presents an algorithm for sorting by using of LIT (left inversions table). The algorithm is named LR. The time complexity of the proposed algorithm analytically evaluated. Two approaches for acceleration of LR are presented. The proposed algorithm and its two improvements are implemented in C++. Experimental comparisons are done between LR and some known algorithms, and between LR and its two modifications. The experiments show that LR is faster than “bubble sort” and “LtoRA” algorithms but it is slower than the algorithms “insertion sort” and “selection sort”. The experiments also show that for rows in which there is a large number of the repetitions, the modification “LR – repeat” is faster than the original algorithm, “Bubble sort”, “Selection sort” and the modification “LRA – minimax”. The algorithm “LR minimax” is faster than algorithm LR in all cases (when the row has large or small number of repetitions).

Keywords

References

  1. [1] Knuth D., The art of computer programming, V3. Sorting and Searching, Addison Wesley Publishing Company, 1973. [2] Stoichev St., Synthesis and analysis of algorithms, BPS, Sofia, 2003 (in Bulgarian). [3] Nakov P., P. Dobrikov, Programming=++Algorithms, TopTeam Co, 2003 Наков (in Bulgarian). [4] Sedgewick R, Algorithms in C, Addison-Wesley, 1990. [5] Harris S., J. Ross, Beginning Algorithms, 2005. [6] Wirth N., Algorithms+data structures=programs, Prentice-Hall, 1976. [7] N. Vasilev, A. Bosakova-Ardenska, Algorithms for sorting by left inversions table, International Review on Computers and Software (IReCoS), vol 7 n2 – Part A, 2012, ISSN 1828-6003, pp 642-650.

Details

Primary Language

English

Subjects

Engineering

Journal Section

Research Article

Authors

Naiden Borisov Vasilev This is me

Atanaska Dimitrova Bosakova Ardenska This is me

Publication Date

December 30, 2015

Submission Date

September 10, 2015

Acceptance Date

-

Published in Issue

Year 2015 Volume: 3 Number: 3

APA
Borisov Vasilev, N., & Bosakova Ardenska, A. D. (2015). A New Sorting Algorithm with filling to the left and right. Balkan Journal of Electrical and Computer Engineering, 3(3), 135-141. https://izlik.org/JA47FY84WN
AMA
1.Borisov Vasilev N, Bosakova Ardenska AD. A New Sorting Algorithm with filling to the left and right. Balkan Journal of Electrical and Computer Engineering. 2015;3(3):135-141. https://izlik.org/JA47FY84WN
Chicago
Borisov Vasilev, Naiden, and Atanaska Dimitrova Bosakova Ardenska. 2015. “A New Sorting Algorithm With Filling to the Left and Right”. Balkan Journal of Electrical and Computer Engineering 3 (3): 135-41. https://izlik.org/JA47FY84WN.
EndNote
Borisov Vasilev N, Bosakova Ardenska AD (December 1, 2015) A New Sorting Algorithm with filling to the left and right. Balkan Journal of Electrical and Computer Engineering 3 3 135–141.
IEEE
[1]N. Borisov Vasilev and A. D. Bosakova Ardenska, “A New Sorting Algorithm with filling to the left and right”, Balkan Journal of Electrical and Computer Engineering, vol. 3, no. 3, pp. 135–141, Dec. 2015, [Online]. Available: https://izlik.org/JA47FY84WN
ISNAD
Borisov Vasilev, Naiden - Bosakova Ardenska, Atanaska Dimitrova. “A New Sorting Algorithm With Filling to the Left and Right”. Balkan Journal of Electrical and Computer Engineering 3/3 (December 1, 2015): 135-141. https://izlik.org/JA47FY84WN.
JAMA
1.Borisov Vasilev N, Bosakova Ardenska AD. A New Sorting Algorithm with filling to the left and right. Balkan Journal of Electrical and Computer Engineering. 2015;3:135–141.
MLA
Borisov Vasilev, Naiden, and Atanaska Dimitrova Bosakova Ardenska. “A New Sorting Algorithm With Filling to the Left and Right”. Balkan Journal of Electrical and Computer Engineering, vol. 3, no. 3, Dec. 2015, pp. 135-41, https://izlik.org/JA47FY84WN.
Vancouver
1.Naiden Borisov Vasilev, Atanaska Dimitrova Bosakova Ardenska. A New Sorting Algorithm with filling to the left and right. Balkan Journal of Electrical and Computer Engineering [Internet]. 2015 Dec. 1;3(3):135-41. Available from: https://izlik.org/JA47FY84WN

All articles published by BAJECE are licensed under the Creative Commons Attribution 4.0 International License. This permits anyone to copy, redistribute, remix, transmit and adapt the work provided the original work and source is appropriately cited.Creative Commons Lisansı