SEARCHING FOR THE MAXIMUM ELEMENT IN A VECTOR USING BUILT-IN FUNCTION max() AND LOCATING THE MAXIMUM ELEMENT FROM THE VECTOR USING POPULAR SEARCHING TECHNIQUE LINEAR SEARCH METHODOLOGY FURTHER ANALYSING THE TIME COMPLEXITY OF THESE ALGORITHMS- A CASE STUDY
Kavish A M
Student, Sainik School Amaravathinagar, Taluka Udumalpet, Tiruppur Dist Tamilnadu
Abstract
In Computer Science the most popular algorithms are searching and sorting algorithms. Finding a maximum element from the given vector is the most common application in any domain. To find a maximum element from the vector various strategies can be applied and various languages supports different built-in functions for the same operation.
To find a maximum element in a language generally max() function is implemented, which can be invoked by importing modules in a particular script/ code, which will make easier for an programmer to implement. In contrast using linear search to find a maximum element in a vector needs deep understanding of an algorithm and implementation methodologies.
This manuscript presents a comparative case study of the built-in function max() approach and the linear search method to find an element from the given vector. It analyzes their working principles, performance, computational complexity, and practical usability.
Keywords: Vector, Maximum Element, Linear Search, Built-in Function, Python, Algorithm Analysis, Computational Efficiency, Time Complexity, Performance Evaluation
Journal Name :
VIEW PDF
EPRA International Journal of Multidisciplinary Research (IJMR)
VIEW PDF
Published on : 2026-03-21
| Vol | : | 12 |
| Issue | : | 3 |
| Month | : | March |
| Year | : | 2026 |