Data Structures and Algorithms with JavaScript (Paperback)
暫譯: 使用 JavaScript 的資料結構與演算法 (平裝本)

Michael McMillan

買這商品的人也買了...

相關主題

商品描述

As an experienced JavaScript developer moving to server-side programming, you need to implement classic data structures and algorithms associated with conventional object-oriented languages like C# and Java. This practical guide shows you how to work hands-on with a variety of storage mechanisms—including linked lists, stacks, queues, and graphs—within the constraints of the JavaScript environment.

Determine which data structures and algorithms are most appropriate for the problems you’re trying to solve, and understand the tradeoffs when using them in a JavaScript program. An overview of the JavaScript features used throughout the book is also included.

This book covers:

  • Arrays and lists: the most common data structures
  • Stacks and queues: more complex list-like data structures
  • Linked lists: how they overcome the shortcomings of arrays
  • Dictionaries: storing data as key-value pairs
  • Hashing: good for quick insertion and retrieval
  • Sets: useful for storing unique elements that appear only once
  • Binary Trees: storing data in a hierarchical manner
  • Graphs and graph algorithms: ideal for modeling networks
  • Algorithms: including those that help you sort or search data
  • Advanced algorithms: dynamic programming and greedy algorithms

商品描述(中文翻譯)

作為一位有經驗的 JavaScript 開發者,轉向伺服器端程式設計時,您需要實現與傳統物件導向語言(如 C# 和 Java)相關的經典資料結構和演算法。本實用指南將指導您如何在 JavaScript 環境的限制下,實際操作各種儲存機制,包括鏈結串列、堆疊、佇列和圖形。

確定哪些資料結構和演算法最適合您要解決的問題,並了解在 JavaScript 程式中使用它們的權衡。書中還包含了 JavaScript 特性的概述。

本書涵蓋的內容包括:
- **陣列和列表:** 最常見的資料結構
- **堆疊和佇列:** 更複雜的類似列表的資料結構
- **鏈結串列:** 如何克服陣列的缺點
- **字典:** 將資料儲存為鍵值對
- **雜湊:** 適合快速插入和檢索
- **集合:** 用於儲存僅出現一次的唯一元素
- **二元樹:** 以階層方式儲存資料
- **圖形和圖形演算法:** 理想的網路建模工具
- **演算法:** 包括幫助您排序或搜尋資料的演算法
- **進階演算法:** 動態規劃和貪婪演算法