Learning JavaScript Data Structures and Algorithms - Second Edition
暫譯: 學習 JavaScript 資料結構與演算法 - 第二版

Loiane Groner

商品描述

Hone up your skills by learning classic data structures and algorithms in JavaScript

About This Book

  • See a practical approach to data structures with real-world examples
  • Identify when to use searching and sorting algorithms for different scenarios
  • Get solutions to common programming problems with step-by-step explanations

Who This Book Is For

If you are a student of Computer Science or are at the start of your technology career and want to explore JavaScript's optimum ability, this book is for you. You need a basic knowledge of JavaScript and programming logic to start having fun with algorithms.

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

In Detail

Data structures and algorithms form an integral part of JavaScript and other programming languages. They allow you to organize your code in more efficient way. They can transform the way you understand the language, and give you a renewed confidence when tackling some of the most complex development problems faced.

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. It further delves into basic data structures such as arrays, stacks, linked lists, and queues. 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 will empower you to sort your data structures using various algorithms. With further guidance on working with graph data and using both search and sorting algorithms, 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.

商品描述(中文翻譯)

**提升你的技能,透過學習 JavaScript 中的經典資料結構和演算法**

## 本書介紹
- 以實際案例展示資料結構的應用
- 確定在不同情境下何時使用搜尋和排序演算法
- 提供常見程式設計問題的解決方案,並附上逐步解釋

## 本書適合誰
如果你是計算機科學的學生,或是剛開始你的科技職業生涯,想要探索 JavaScript 的最佳能力,那麼這本書適合你。你需要具備基本的 JavaScript 知識和程式邏輯,才能開始享受演算法的樂趣。

## 你將學到什麼
- 宣告、初始化、添加和移除陣列、堆疊和佇列中的項目
- 掌握使用 DFS(深度優先搜尋)和 BFS(廣度優先搜尋)等演算法來處理最複雜的資料結構
- 利用鏈結串列、雙向鏈結串列和圓形鏈結串列的強大功能
- 使用雜湊表、字典和集合來儲存唯一元素
- 使用二元樹和二元搜尋樹
- 使用各種演算法(如氣泡排序、插入排序和快速排序)來排序資料結構

## 詳細內容
資料結構和演算法是 JavaScript 及其他程式語言的重要組成部分。它們使你能以更有效的方式組織程式碼。它們可以改變你對語言的理解方式,並在面對一些最複雜的開發問題時,給你帶來新的信心。

本書首先介紹 JavaScript 語言的基礎,並引入 ECMAScript 7,然後逐步轉向當前的 ECMAScript 6 實作。接著深入探討基本資料結構,如陣列、堆疊、鏈結串列和佇列。你將深入了解雜湊表和集合資料結構的運作,以及如何使用樹和雜湊映射來搜尋硬碟中的檔案或表示資料庫。

本書將使你能夠使用各種演算法來排序資料結構。隨著對圖形資料的進一步指導,以及使用搜尋和排序演算法的技巧,本書將成為你深入了解 JavaScript 的可行途徑。圖形是你將遇到的最複雜的資料結構之一,我們還將幫助你更好地理解為什麼以及如何在社交網路的 GPS 導航系統中廣泛使用圖形。

在本書的結尾,你將發現本書所介紹的所有理論如何應用於實際解決方案,並在你自己的計算機網路和 Facebook 搜尋中發揮作用。