CSPC24 Chapter 6 - Decrease and Conquer Algorithm Design Technique
CSPC24 Chapter 6 - Decrease and Conquer Algorithm Design Technique
Algorithm and
Complexity
DECREASE AND CONQUER
ALGORITHM DESIGN TECHNIQUE
Objectives
• Define and identify decrease-and-conquer algorithm
design technique.
• Decrease by a constant
• Binary search
• Fake-coin problems
• Multiplication à la russe
• Josephus problem
Examples of Decrease-and-Conquer
Algorithms
Variable-size decrease:
• Euclid’s algorithm
• Selection by partition
Examples of Decrease-and-Conquer
Algorithms
Topological Sort:
Topological sort is an ordering of the vertices that is
not contrary to the dependencies. In other words, if you
were to perform one job at a time, a topological sort is
one order that you could perform the jobs.
Thank you!
REFERENCES:
Cormen T., Leiserson C., Rivest R., & Stein C. (2009). Introduction to Algorithms Third
Edition. The MIT Press, Cambridge, Massachusets
Fleck, Margaret M., (2013). Building Blocks for Theoretical Computer Science. Version
1.3 (January 2013)
Lehman, Eric F., Leighton, Thomson & Meyer, Albert R. (2018). Mathematics for
Computer Science. June 2018
ONLINE REFERENCES:
https://www.geeksforgeeks.org/
http://www.freebookcentre.net/CompuScience/free-computer-algorithm-books.html