Book description
Understand and implement classic data structures and algorithms using JavaScript
In Detail
A data structure is a particular way of organizing data in a computer to utilize resources efficiently. Data structures and algorithms are the base of every solution to any programming problem.
This book begins by covering the basics of the JavaScript language and then moves on to discuss the most important data structures such as array, queue, stack, and linked list. You will also gain an in-depth knowledge of how hash tables and set data structure function. After this, you will be taught what trees are, and how to use the binary tree and the binary search tree.
In subsequent chapters, you will learn about graphs, DFS, and BFS. Finally, we will round off by learning how to differentiate between various searching and sorting algorithms such as sequential search, binary search, quick sort, bubble sort, and so on, and how to implement them. Towards the end of the book, you will also be introduced to dynamic programming.
What You Will Learn
- Declare, initialize, add, and remove items from arrays, stacks, and queues
- Create and use the most complex data structure, graphs, along with DFS and BFS algorithms
- Grasp the power of linked lists, doubly linked lists, and circular linked lists
- Store unique elements with hash tables, dictionaries, and sets
- Explore the applications of binary trees and binary search trees
- Sort data structures using bubble sort, selection sort, insertion sort, merge sort, and quick sort
- Search elements in data structures using sequential sort and binary search
- Understand the importance of big O notation, dynamic programming, and greedy algorithms
Table of contents
-
Learning JavaScript Data Structures and Algorithms
- Table of Contents
- Learning JavaScript Data Structures and Algorithms
- Credits
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. JavaScript – A Quick Overview
- 2. Arrays
- 3. Stacks
- 4. Queues
- 5. Linked Lists
- 6. Sets
- 7. Dictionaries and Hashes
- 8. Trees
- 9. Graphs
- 10. Sorting and Searching Algorithms
- Index
Product information
- Title: Learning JavaScript Data Structures and Algorithms
- Author(s):
- Release date: October 2014
- Publisher(s): Packt Publishing
- ISBN: 9781783554874
You might also like
book
Learning JavaScript Data Structures and Algorithms - Second Edition
Hone your skills by learning classic data structures and algorithms in JavaScript About This Book Understand …
book
Data Structures and Algorithms with JavaScript
As an experienced JavaScript developer moving to server-side programming, you need to implement classic data structures …
book
Learning JavaScript Data Structures and Algorithms - Third Edition
Create classic data structures and algorithms such as depth-first search and breadth-first search, learn recursion, as …
book
Hands-On Data Structures and Algorithms with JavaScript
Increase your productivity by implementing complex data structures and algorithms using JavaScript About This Book A …