Leanpub Header

Skip to main content

Data Structures and Algorithm Design using Python

Free With Membership

With Membership

Free!

$29.00

You pay

$29.00

Author earns

$23.20
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
About

About

About the Book

This book presents the study of data structures and algorithms as a guided journey from the motivations that shape the field to the advanced techniques that define it. It opens with the algorithmic challenges hidden in everyday technology, builds the analytical tools needed to evaluate efficiency, and uses Python to establish the basic constructs that support clear, precise problem-solving. From these foundations, it moves through essential tasks like searching and sorting, expands into intermediate Python features that enable robust programs, and then introduces the data structures and strategies—sets, stacks, queues, heaps, backtracking, and object-oriented design—that prepare the way for trees and balanced trees. This progression culminates in the major algorithmic paradigms of divide and conquer, greedy methods, graph algorithms for shortest paths and spanning trees, and finally dynamic programming, rounding out a coherent exploration of the techniques that drive modern computation.

Author

About the Author

Shashank

CS Student

Contents

Table of Contents

Lecture 1: Introduction to Programming, Data Structures & Algorithms Lecture 2: The Greatest Common Divisor (GCD) Lecture 3: Analysis of Algorithms - Part 1 Lecture 4: Analysis of Algorithms - Part 2 Lecture 5: Basics of Python – Part 1: Types & Operators Lecture 6: Basics of Python – Part 2: Lists & Control Flow Lecture 7: Basics of Python – Part 3: Functions Lecture 8: Basics of Python – Part 4: More About Lists Lecture-9: Searching in an Array Lecture-10: Naive Sorting Algorithms Lecture-11: Smarter Sorting Algorithms: Merge Sort Lecture-12: D&C without Merging: Quick Sort Lecture-13: Intermediate Python Concepts – Part 1: Tuples, Dictionaries etc. Lecture-14: Intermediate Python Concepts - Part 2: Exceptions, I/O Lecture-15: Intermediate Python Concepts - Part 3: File Handling, Formatting etc. Lecture-16: Backtracking & Data Structures - Sets, Stacks & Queues Lecture-17: Priority Queues & Heaps Lecture-18: Advanced Python Concepts - Part 1: ADTs & OO Programming Lecture-19: Advanced Python Concepts - Part 2: User Defined List Lecture-20: Trees - Part 1: Binary Search Trees Lecture-21: Trees - Part 2: Balancing BSTs Lecture-22: Divide & Conquer: Counting Inversions & Closest Pair of Points Lecture-23: Greedy Algorithms - Part 1: Interval Scheduling Lecture-24: Greedy Algorithms - Part 2: Huffman Coding Lecture-25: Graphs - Part 1: Representation Lecture-26: Graphs - Part 2: Traversals Lecture-27: Graphs - Part 3: Applications of Traversals Lecture-28: Graphs - Part 4: Single Source Shortest Path Lecture-29: Graphs - Part 5: Shortest Paths with Negative Edges Lecture-30: Graphs - Part 6: All Pair Shortest Paths Lecture-31: Graphs - Part 7: Minimum Cost Spanning Trees, Union-Find Data Structure Lecture-32: Dynamic Programming - Part 1: Fibonacci Numbers, Grid Paths Lecture-33: Dynamic Programming - Part 2: Longest Common Subsequence Lecture-34: Dynamic Programming - Part 3: Edit Distance Lecture-35: Dynamic Programming - Part 4: Matrix Chain Multiplication Lecture 36: Miscellaneous/Advanced Topics - Part 1: Linear Programming Lecture 37: Miscellaneous/Advanced Topics - Part 2: Network Flows Lecture 38: Miscellaneous/Advanced Topics - Part 3: Intractability

Get the free Community Edition

Enter your name and email address and click the buttons to the right to get the free Community Edition in PDF or EPUB, or just click this link to read a shorter sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub