Buy Absolute Beginner's Guide to Algorithms by Kirupa Chinnathambi
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Computer programming / software engineering > Algorithms and data structures > Absolute Beginner's Guide to Algorithms: A Practical Introduction to Data Structures and Algorithms in JavaScript
Absolute Beginner's Guide to Algorithms: A Practical Introduction to Data Structures and Algorithms in JavaScript

Absolute Beginner's Guide to Algorithms: A Practical Introduction to Data Structures and Algorithms in JavaScript


     0     
5
4
3
2
1



International Edition


X
About the Book

A hands-on, easy-to-comprehend guide that is perfect for anyone who needs to understand algorithms.

With the explosive growth in the amount of data and the diversity of computing applications, efficient algorithms are needed now more than ever. Programming languages come and go, but the core of programming--algorithms and data structures--remains the same. 

Absolute Beginner's Guide to Algorithms is the fastest way to learn algorithms and data structures. Using helpful diagrams and fully annotated code samples in Javascript, you will start with the basics and gradually go deeper and broader into all the techniques you need to organize your data.  

  • Start fast with data structures basics: arrays, stacks, queues, trees, heaps, and more
  • Walk through popular search, sort, and graph algorithms
  • Understand Big-O notation and why some algorithms are fast and why others are slow
  • Balance theory with practice by playing with the fully functional JavaScript implementations of all covered data structures and algorithms

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.



Table of Contents:

Part I: Data Structures

 

Chapter 1. Introduction to Data Structures .................................................................. 1

     Right Tool for the Right Job .................................................................................... 2

     Back to Data Structures ........................................................................................... 5

     Conclusion ................................................................................................................. 6

 

Chapter 2. Big-O Notation and Complexity Analysis ................................................... 7

     It's Example Time ...................................................................................................... 8

     It's Big-O Notation Time! .......................................................................................11

     Conclusion ...............................................................................................................15

 

Chapter 3. Arrays ....................................................................................................... 17

     What Is an Array? ....................................................................................................18

     Array Implementation / Use Cases .......................................................................24

     Arrays and Memory ................................................................................................26

     Performance Considerations .................................................................................30

     Conclusion ...............................................................................................................32

 

Chapter 4. Linked Lists ............................................................................................... 35

     Meet the Linked List ...............................................................................................36

     Linked List: Time and Space Complexity .............................................................40

     Linked List Variations ..............................................................................................41

     Implementation .......................................................................................................44

     Conclusion ...............................................................................................................52

 

Chapter 5. Stacks ........................................................................................................ 53

     Meet the Stack ........................................................................................................54

     A JavaScript Implementation ................................................................................56

     Stacks: Time and Space Complexity ....................................................................58

     Conclusion ...............................................................................................................59

 

Chapter 6. Queues ..................................................................................................... 61

     Meet the Queue .....................................................................................................62

     A JavaScript Implementation ................................................................................64

     Queues: Time and Space Complexity ..................................................................66

     Conclusion ...............................................................................................................67

 

Chapter 7. Trees ......................................................................................................... 69

     Trees 101 .................................................................................................................70

     Height and Depth ...................................................................................................75

     Conclusion ...............................................................................................................77

 

Chapter 8. Binary Trees .............................................................................................. 79

     Meet the Binary Tree ..............................................................................................80

     A Simple Binary Tree Implementation ..................................................................86

     Conclusion ...............................................................................................................89

 

Chapter 9. Binary Search Trees ................................................................................... 91

     It's Just a Data Structure ........................................................................................93

     Implementing a Binary Search Tree ....................................................................103

     Performance and Memory Characteristics .........................................................110

     Conclusion .............................................................................................................112

 

Chapter 10. Heaps ...................................................................................................... 113

     Meet the Heap ......................................................................................................114

     Heap Implementation ..........................................................................................126

     Performance Characteristics ................................................................................132

     Conclusion .............................................................................................................134

 

Chapter 11. Hashtable (aka Hashmap or Dictionary) .................................................. 137

     A Very Efficient Robot ..........................................................................................138

     From Robots to Hashing Functions ....................................................................142

     From Hashing Functions to Hashtables .............................................................145

     JavaScript Implementation/Usage ......................................................................148

     Dealing with Collisions .........................................................................................150

     Performance and Memory ...................................................................................151

     Conclusion .............................................................................................................153

 

Chapter 12. Trie (aka Prefix Tree) ............................................................................... 155

     What Is a Trie? ......................................................................................................156

     Diving Deeper into Tries ......................................................................................167

     Many More Examples Abound! ..........................................................................172

     Implementation Time ...........................................................................................173

     Performance ..........................................................................................................179

     Conclusion .............................................................................................................181

 

Chapter 13. Graphs .................................................................................................... 183

     What Is a Graph? ..................................................................................................184

     Graph Implementation .........................................................................................190

     Conclusion .............................................................................................................196

 

Part II: Algorithms

 

Chapter 14. Introduction to Recursion ....................................................................... 199

     Our Giant Cookie Problem ..................................................................................200

     Recursion in Programming ..................................................................................202

     Conclusion .............................................................................................................206

 

Chapter 15. Fibonacci and Going Beyond Recursion ................................................. 207

     Recursively Solving the Fibonacci Sequence ....................................................209

     Recursion with Memoization ...............................................................................213

     Taking an Iteration-Based Approach ..................................................................215

     Going Deeper on the Speed ..............................................................................217

     Conclusion .............................................................................................................218

 

Chapter 16. Towers of Hanoi ...................................................................................... 221

     How Towers of Hanoi Is Played ..........................................................................222

     The Single Disk Case ...........................................................................................223

     It's Two Disk Time .................................................................................................224

     Three Disks ............................................................................................................225

     The Algorithm .......................................................................................................228

     The Code Solution ...............................................................................................229

     Check Out the Recursiveness! ............................................................................231

     It's Math Time ........................................................................................................232

     Conclusion .............................................................................................................234

 

Chapter 17. Search Algorithms and Linear Search ..................................................... 235

     Linear Search .........................................................................................................236

     Conclusion .............................................................................................................241

 

Chapter 18. Faster Searching with Binary Search ....................................................... 243

     Binary Search in Action ........................................................................................243

     The JavaScript Implementation ..........................................................................250

     Runtime Performance ...........................................................................................254

     Conclusion .............................................................................................................257

 

Chapter 19. Binary Tree Traversal ............................................................................... 259

     Breadth-First Traversal ..........................................................................................260

     Depth-First Traversal ............................................................................................265

     Implementing Our Traversal Approaches ..........................................................270

     Performance of Our Traversal Approaches ........................................................278

     Conclusion .............................................................................................................279

 

Chapter 20. Depth-First Search (DFS) and Breadth-First Search (BFS) ....................... 281

     A Tale of Two Exploration Approaches ..............................................................282

     It's Example Time ..................................................................................................285

     When to Use DFS? When to Use BFS? ..............................................................298

     A JavaScript Implementation ..............................................................................300

     Performance Details .............................................................................................307

     Conclusion .............................................................................................................308

 

Chapter 21. Quicksort ................................................................................................ 309

     A Look at How Quicksort Works .........................................................................310

     Another Simple Look ...........................................................................................314

     It's Implementation Time .....................................................................................319

     Performance Characteristics ................................................................................322

     Conclusion .............................................................................................................323

 

Chapter 22. Bubblesort .............................................................................................. 325

     How Bubblesort Works ........................................................................................326

     Walkthrough ..........................................................................................................329

     The Code ...............................................................................................................333

     Conclusion .............................................................................................................333

 

Chapter 23. Insertion Sort .......................................................................................... 335

     How Insertion Sort Works ....................................................................................336

     One More Example ..............................................................................................347

     Algorithm Overview and Implementation .........................................................349

     Performance Analysis ...........................................................................................351

     Conclusion .............................................................................................................353

 

Chapter 24. Selection Sort ......................................................................................... 355

     Selection Sort Walkthrough .................................................................................356

     Algorithm Deep Dive ...........................................................................................364

     The JavaScript Implementation ..........................................................................366

     Conclusion .............................................................................................................369

 

Chapter 25. Mergesort ............................................................................................... 371

     How Mergesort Works .........................................................................................372

     Mergesort: The Algorithm Details ......................................................................379

     Looking at the Code ............................................................................................380

     Conclusion .............................................................................................................381

 

Conclusion .................................................................................................................383

 

Index ............................................................................................................................ 387



About the Author :

Kirupa Chinnathambi has spent most of his life teaching others to love web development as much as he does. He founded KIRUPA, one of the Web's most popular free web development education resources, serving 210,000+ registered members. Now a product manager at Google, he has authored several books, including Learning React (2017). He holds a B.S. in computer science from MIT.


Best Sellers


Product Details
  • ISBN-13: 9780138222291
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Height: 231 mm
  • No of Pages: 416
  • Spine Width: 24 mm
  • Weight: 750 gr
  • ISBN-10: 0138222290
  • Publisher Date: 11 Dec 2023
  • Binding: Paperback
  • Language: English
  • Returnable: Y
  • Sub Title: A Practical Introduction to Data Structures and Algorithms in JavaScript
  • Width: 180 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Absolute Beginner's Guide to Algorithms: A Practical Introduction to Data Structures and Algorithms in JavaScript
Pearson Education (US) -
Absolute Beginner's Guide to Algorithms: A Practical Introduction to Data Structures and Algorithms in JavaScript
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Absolute Beginner's Guide to Algorithms: A Practical Introduction to Data Structures and Algorithms in JavaScript

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!