An empirical estimation for time and memory algorithm complexities: newly developed R package

被引:14
作者
Agenis-Nevers, Marc [1 ]
Bokde, Neeraj Dhanraj [2 ]
Yaseen, Zaher Mundher [3 ]
Shende, Mayur Kishor [4 ]
机构
[1] Epictr Factory, Clermont Ferrand, France
[2] Aarhus Univ, Dept Engn Renewable Energy & Thermodynam, Aarhus, Denmark
[3] Ton Duc Thang Univ, Sustainable Dev Civil Engn Res Grp, Fac Civil Engn, Ho Chi Minh City, Vietnam
[4] Govt Coll Engn, Nagpur, Maharashtra, India
关键词
Time complexity; Memory complexity; Empirical approach; R package; Algorithm complexity;
D O I
10.1007/s11042-020-09471-8
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
When an algorithm or a program runs on a computer, it requires some resources. The complexity of an algorithm is the measure of the resources, for some input. These complexities are usually space and time. The subject of the empirical computational complexity has been studied in the research. This article introduces GuessCompx which is an R package that performs an empirical estimation on the time and memory complexities of an algorithm or a function, and provides a reliable, convenient and simple procedure for estimation process. It tests multiple increasing-sizes samples of the user's data and attempts to fit one of seven complexity functions:O(N), O(N<SIC>2), O(log(N)), etc. In addition, based on the best fit procedure using leave one out-mean squared error (LOO-MSE), it predicts the full computation time and memory usage on the whole dataset. Together with this results, a plot and a significance test are returned. Complexity is assessed with regard to the user's actual dataset through its size (and no other parameter). This article provides several examples demonstrating several cases (e.g., distance function, time series and custom function) and optimal parameters tuning.
引用
收藏
页码:2997 / 3015
页数:19
相关论文
共 33 条
[1]  
Abualigah L.M.Q, 2019, STUDIES COMPUTATIONA, P1
[2]   Multi-verse optimizer algorithm: a comprehensive survey of its results, variants, and applications [J].
Abualigah, Laith .
NEURAL COMPUTING & APPLICATIONS, 2020, 32 (16) :12381-12401
[3]   A new feature selection method to improve the document clustering using particle swarm optimization algorithm [J].
Abualigah, Laith Mohammad ;
Khader, Ahamad Tajudin ;
Hanandeh, Essam Said .
JOURNAL OF COMPUTATIONAL SCIENCE, 2018, 25 :456-466
[4]   Unsupervised text feature selection technique based on hybrid particle swarm optimization algorithm with genetic operators for the text clustering [J].
Abualigah, Laith Mohammad ;
Khader, Ahamad Tajudin .
JOURNAL OF SUPERCOMPUTING, 2017, 73 (11) :4773-4795
[5]  
Agenis M, 2019, GUESSCOMPX
[6]  
Agenis M, 2019, GUESSCOMPXPERFORMANC
[7]   SEQUENTIAL CODING ALGORITHMS - A SURVEY AND COST-ANALYSIS [J].
ANDERSON, JB .
IEEE TRANSACTIONS ON COMMUNICATIONS, 1984, 32 (02) :169-176
[8]  
[Anonymous], 2018, ARXIV180505729
[9]  
Chivers I., 2015, Intro program fortran, V90, P359, DOI [10.1007/978-3-319-17701-4, DOI 10.1007/978-3-319-17701-4, 10.1007/978-3-319-17701-423, DOI 10.1007/978-3-319-17701-4_23, 10.1007/978-3-319-17701-4_23]
[10]   A Hybrid Seasonal Mechanism with a Chaotic Cuckoo Search Algorithm with a Support Vector Regression Model for Electric Load Forecasting [J].
Dong, Yongquan ;
Zhang, Zichen ;
Hong, Wei-Chiang .
ENERGIES, 2018, 11 (04)