Casestudy 3
Casestudy 3
INTRODUCTION:
APPLICATIONS:
1. Fibonacci Search:
3. Tim Sort:
ADVANTAGES:
1. Fibonacci Search
DISADVANTAGES:
1. Fibonacci Search
• Limited to Sorted Data: Only applicable to sorted arrays, making it
unsuitable for unsorted or dynamically changing datasets.
• Complex Implementation: The algorithm can be more complex to
implement compared to simpler search methods like linear search or
binary search, particularly when handling large datasets.
• Memory Overhead: Requires additional space for storing Fibonacci
numbers, which could be a drawback in memory-constrained
environments.
CONCLUSION:
Each of the discussed algorithms—Fibonacci Search, optimization of
unimodal functions, and Tim Sort—offers distinct advantages suited to
different applications:
• Fibonacci Search excels in searching sorted arrays efficiently, particularly
in non-uniform memory access (NUMA) systems, but is limited to sorted
data and can be complex to implement.
• Optimization of Unimodal Functions provides an efficient way to find
optimal values for functions with a single extremum, though it is
ineffective for multi-modal functions and discrete datasets.
• Tim Sort combines Merge Sort and Insertion Sort to handle large and
partially sorted datasets efficiently, offering stability and adaptability, but
may have overhead for small datasets and complex implementations.
REFERENCES:
1. Fibonacci Search
o Knuth, Donald E. The Art of Computer Programming, Volume 1:
Fundamental Algorithms. Addison-Wesley, 2011. [Classic
reference on various algorithms including search techniques.]
o Pohl, Ira. The Fibonacci Search Algorithm. Computer Science
Press, 1973. [Detailed explanation and analysis of the Fibonacci
Search algorithm.]
3. Tim Sort
o Tim Peters. Python's TimSort. Python Software Foundation, 2002.
[The original description and implementation of Tim Sort, used in
Python’s standard library.]
o Gonnet, G. & Baeza-Yates, R. Handbook of Algorithms and Data
Structures. Addison-Wesley, 1990. [Discusses various sorting
algorithms including Tim Sort.]
Online resources:
Fibonacci Search
Presented by
Nam- Namrata Sathe
SE Div-A Signature of Teacher
Roll No:06