Learning JavaScript Data Structures and Algorithms: Hone your skills by learning classic data structures and algorithms in JavaScript
Hone your skills by learning classic data structures and algorithms in JavaScript
Key Features
- Understand common data structures and the associated algorithms, as well as the context in which they are used.
- Master existing JavaScript data structures such as array, set and map and learn how to implement new ones such as stacks, linked lists, trees and graphs.
- All concepts are explained in an easy way, followed by examples.
Book Description
This book begins by covering basics of the JavaScript language and introducing ECMAScript 7, before gradually moving on to the current implementations of ECMAScript 6. You will gain an in-depth knowledge of how hash tables and set data structure functions, as well as how trees and hash maps can be used to search files in a HD or represent a database. This book is an accessible route deeper into JavaScript. Graphs being one of the most complex data structures you'll encounter, we'll also give you a better understanding of why and how graphs are largely used in GPS navigation systems in social networks.
Toward the end of the book, you'll discover how all the theories presented by this book can be applied in real-world solutions while working on your own computer networks and Facebook searches.
What you will learn
- Declare, initialize, add, and remove items from arrays, stacks, and queues
- Get the knack of using algorithms such as DFS (Depth-first Search) and BFS (Breadth-First Search) for the most complex data structures
- Harness the power of creating linked lists, doubly linked lists, and circular linked lists
- Store unique elements with hash tables, dictionaries, and sets
- Use binary trees and binary search trees
- Sort data structures using a range of algorithms such as bubble sort, insertion sort, and quick sort
Table of Contents
- JavaScript-A Quick Overview
- Arrays
- Stacks
- Queues
- Linked Lists
- Sets
- Dictionaries and Hashes
- Trees
- Graphs
- Sorting and Searching Algorithms
- Patterns of Algorithm
- Algorithm Complexity