Get acquainted with complex data structures and algorithms with simple functional implementations
About This Video
Bridge your transition from object-oriented programming to functional programming
Easy-to-understand explanations of practical topics will help you get started with functional data structures
Illustrative diagrams will explain the algorithms in detail
Experience hands-on practice in Scala to get the most out of functional programming.
Algorithms and datastructures are fundamentals in computer programming. Functional data structures have the power to improve the codebase of an application and improve its efficiency. With the advent of functional programming and powerful functional languages such as Scala, Clojure, and Elixir becoming part of important enterprise applications, functional data structures have gained an important place in the developer toolkit.
Immutability is a cornerstone of functional programming. Immutable and persistent data structures are thread-safe by definition and therefore are very appealing to write robust concurrent programs. But how do we express traditional algorithms in a functional setting? Won't we end up copying too much? Do we trade performance for versioned data structures? This course attempts to answer these questions by looking at functional implementations of traditional algorithms.
The course begins by showing you the functioning of lists, the workhorse data type for most functional languages. We'll show you what structural sharing means and how it helps to make immutable data structures efficient and practical.
While writing code, we use ADTs (abstract data types) such as Stacks, Queues, Trees, and Graphs. You'll see how these ADTs are implemented in a functional setting. We look at implementation techniques such as amortization and lazy evaluation to ensure efficiency. By the end of the course, you'll be able to write efficient functional data structures and algorithms for your applications.
Table of contents
- Chapter 1 : Graph Algorithms
- Chapter 2 : Random Access Lists
- Chapter 3 : Queues
- Chapter 4 : Streams, Laziness, and Algorithms
- Chapter 5 : Being Lazy – Queues and Deques
- Chapter 6 : Red-Black Trees
- Chapter 7 : Binomial Heaps
- Chapter 8 : Sorting
- Title: Advanced Functional Data Structures and Algorithms
- Release date: August 2017
- Publisher(s): Packt Publishing
- ISBN: 9781788390477
You might also like
Functional Data Structures and Algorithms
Learn functional data structures and algorithms for your applications and bring their benefits to your work …
Grokking Algorithms Video Edition
"This book does the impossible: it makes math fun and easy!" Sander Rossel, COAS Software Systems …
Algorithms in Motion
"Good and simple to understand introduction to algorithms." Boris Vasile, Team Lead, Garmin Cluj Algorithms - …
Advanced Data Structures and Algorithms in Java 9
Explore the world of advanced algorithms with Java 9 About This Video This video provides complete …