ANALYSIS OF SEARCHING AND SORTING DATA COLLECTIONS ALGORITHMS EXECUTION TIME

  • Selena Matijević Vojska Srbije
  • Saša Lazarević Fakultet organizacionih nauka, Univerzitet u Beogradu
Keywords: Algorithm, Data Collection, Searching, Sorting, Time Measurement, Comparative Analysis

Abstract

in word of computer programming, sorting is present to a large degree, just like in everyday life. it is process of arranging elements of any set by certain order and precondition for efficient search of that set. Searching is process which goal is to find certain element in some data collection. it usually refers to search of element that contain some information (key). There are several sorting and searching algorithms, and the question is which one is optimal to use, depending on parameters of data collection. This paper considers different data collections, and those differences compete in more criterions. Firstly, data collections are divided by place in memory that they held into arrays and lists, as parts of internal memory, and files as parts of external memory. Further, these data collections are divided by level of sort in assorted, inverse assorted, partially assorted and random collections, and can be of different size (1000, 100000 and 10000000 elements). Searching and sorting of arrays, lists and files that have different combinations of mentioned characteristics are implemented in applications, using C programming language. Analysis of algorithms’ execution time is done by using the results of searching and sorting measurements, with goal to get answer to question which algorithm is best to use depending on characteristics of data collection.
Published
2019-01-15
Section
Articles