Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Efficient Algorithm Design

You're reading from   Efficient Algorithm Design Unlock the power of algorithms to optimize computer programming

Arrow left icon
Product type Paperback
Published in Oct 2024
Publisher Packt
ISBN-13 9781835886823
Length 360 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Masoud Makrehchi Masoud Makrehchi
Author Profile Icon Masoud Makrehchi
Masoud Makrehchi
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Part 1: Foundations of Algorithm Analysis
2. Chapter 1: Introduction to Algorithm Analysis FREE CHAPTER 3. Chapter 2: Mathematical Induction and Loop Invariant for Algorithm Correctness 4. Chapter 3: Rate of Growth for Complexity Analysis 5. Chapter 4: Recursion and Recurrence Functions 6. Chapter 5: Solving Recurrence Functions 7. Part 2: Deep Dive in Algorithms
8. Chapter 6: Sorting Algorithms 9. Chapter 7: Search Algorithms 10. Chapter 8: Symbiotic Relationship between Sort and Search 11. Chapter 9: Randomized Algorithms 12. Chapter 10: Dynamic Programming 13. Part 3: Fundamental Data Structures
14. Chapter 11: Landscape of Data Structures 15. Chapter 12: Linear Data Structures 16. Chapter 13: Non-Linear Data Structures 17. Part 4: Next Steps
18. Chapter 14: Tomorrow’s Algorithms 19. Index 20. Other Books You May Enjoy

Preface

In the second chapter of this book, we explore the concept of the “loop invariant,” which refers to an attribute within a changing process that remains constant. If we look at human progress since the Industrial Revolution, despite the volatility and constant change, we can identify a few unchanging attributes. One is our drive to automate more and more, and the other is our systematic approach to problem-solving, which took a formal direction with the invention of the digital computer. This is what we now call algorithms.

This book is another contribution to the world of algorithms. It’s not meant to replace the existing and remarkable works that I have enjoyed reading and teaching. Instead, it offers an alternative approach to learning algorithms by merging theoretical concepts with practical applications. It also represents the culmination of 30 years of experience in research, industry, and academia, particularly in computer science and artificial intelligence, as well as 12 years of continuous teaching of algorithms to students.

If it were possible, I would add my students as co-authors, because I have learned more from their challenging questions than I could ever teach them. Their inquiries have pushed me to uncover the deeper explanations and logic behind every aspect of algorithms. Yes, I do mean every aspect. Algorithms are about making human-made machines function correctly and deliver the results we expect. Here, nothing short of a logical process and behavior is acceptable.

This book does not claim to cover every aspect or topic in the vast field of algorithms. Instead, it narrows its focus to the design and analysis of algorithms, seeking to address the essential questions we must always consider when evaluating them. First and foremost, can we prove that the algorithm functions correctly and as intended? It’s crucial to establish that the algorithm reliably produces the expected results for all possible inputs.

Next, we must ask how we can ensure the algorithm consistently behaves as we anticipate. This involves scrutinizing its logic, understanding its steps, and confirming that each part contributes to the overall goal. Finally, we need to consider whether the algorithm terminates within an acceptable timeframe. No matter how elegantly an algorithm is designed, if it doesn’t complete its task efficiently, it becomes impractical for real-world use. By concentrating on these fundamental questions, this book aims to guide you through the process of designing robust, reliable, and efficient algorithms.

lock icon The rest of the chapter is locked
Next Section arrow right
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image