A Very Efficient Algorithm for Calculating the Max and Min from Running Data
Journal: International Journal of Science and Research (IJSR) (Vol.10, No. 7)Publication Date: 2021-07-15
Authors : Rushabh Sharadchandra Sankalcar;
Page : 35-38
Keywords : Running sequence; maximum; minimum; effective algorithm; MINMAX; MAXLIST; comparisons;
Abstract
I present an algorithm for calculating the running maximum and minimum value of a one-dimensional sequence over a sliding window. The above-mentioned algorithm stores an ordered list of data elements which may have the potential to become maxima or minima across the data window at some future time instant. This algorithm has a number of advantages over competing algorithms like reducing processing time and storage requirements for long data windows. It also finds the minimum and maximum at the same time with minimum number of comparisons. It is observed that by using this new algorithm the number of comparisons reduces drastically in finding maximum and minimum value of a one-dimensional sequence.
Other Latest Articles
- Selection of Best Cold Chain Supplier Using Fuzzy-AHP and TOPSIS Method for Temperature Controlled Logistics (TCL) during COVID-19 Pandemic Era
- Review on Concept of Blood Pressure
- Student Involvement in School Work
- Study of Maternal Near Miss Morbidity in a Tertiary Care Centre of Western Rajasthan
- The Impact of Dialogue Journals on Student's Writing
Last modified: 2021-08-15 12:57:31