A Common-Sense Guide to Data Structures and Algorithms in Python, Volume 1: Level Up Your Core Programming Skills
暫譯: Python 資料結構與演算法常識指南,第 1 卷:提升你的核心程式設計技能

Wengrow, Jay

商品描述

p>If you thought data structures and algorithms were all just theory, you're missing out on what they can do for your Python code. Learn to use Big O notation to make your code run faster by orders of magnitude. Choose from data structures such as hash tables, trees, and graphs to increase your code's efficiency exponentially. With simple language and clear diagrams, this book makes this complex topic accessible, no matter your background. Every chapter features practice exercises to give you the hands-on information you need to master data structures and algorithms for your day-to-day work.

Algorithms and data structures are much more than abstract concepts. Mastering them enables you to write code that runs faster and more efficiently, which is particularly important for today's web and mobile apps. Take a practical approach to data structures and algorithms, with techniques and real-world scenarios that you can use in your daily production code. The Python edition uses Python exclusively for all code examples, exercise, and solutions.

Use Big O notation to measure and articulate the efficiency of your code, and modify your algorithm to make it faster. Find out how your choice of arrays, linked lists, and hash tables can dramatically affect the code you write. Use recursion to solve tricky problems and create algorithms that run exponentially faster than the alternatives. Dig into advanced data structures such as binary trees and graphs to help scale specialized applications such as social networks and mapping software. You'll even encounter a single keyword that can give your code a turbo boost. Practice your new skills with exercises in every chapter, along with detailed solutions.

Use these techniques today to make your Python code faster and more scalable.

商品描述(中文翻譯)

如果你認為資料結構和演算法僅僅是理論,那麼你錯過了它們對你的 Python 代碼所能帶來的好處。學習使用 Big O 符號來使你的代碼運行速度提高幾個量級。選擇如哈希表、樹和圖等資料結構,以指數級提高你的代碼效率。本書使用簡單的語言和清晰的圖示,使這個複雜的主題變得易於理解,無論你的背景如何。每一章都包含練習題,讓你獲得掌握資料結構和演算法所需的實用資訊,以應對日常工作。

演算法和資料結構遠不止於抽象概念。掌握它們使你能夠編寫運行更快、更高效的代碼,這對於當今的網頁和移動應用特別重要。採取實用的方法來學習資料結構和演算法,使用可以在日常生產代碼中應用的技術和真實場景。Python 版本的所有代碼示例、練習和解答均專門使用 Python。

使用 Big O 符號來衡量和表達你的代碼效率,並修改你的演算法以提高速度。了解你選擇的陣列、鏈結串列和哈希表如何顯著影響你所編寫的代碼。利用遞迴來解決棘手的問題,並創建運行速度比其他方法快幾倍的演算法。深入研究如二元樹和圖等進階資料結構,以幫助擴展社交網路和地圖軟體等專用應用。你甚至會遇到一個關鍵字,可以為你的代碼提供加速效果。每一章都有練習題來練習你的新技能,並附有詳細的解答。

今天就使用這些技術來使你的 Python 代碼更快、更具可擴展性。