Book Image

Functional Data Structures and Algorithms [Video]

By : Atul S. Khot, Raju Kumar Mishra
Book Image

Functional Data Structures and Algorithms [Video]

By: Atul S. Khot, Raju Kumar Mishra

Overview of this book

<p><span id="description" class="sugar_field">Functional data structures have the power to improve the code base of an application and improve efficiency. With the advent of functional programming, and with 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 hence very appealing for writing robust concurrent programs. 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. </span></p> <p><span id="description" class="sugar_field">It begins with a refresher and consolidates what functional programming is all about. Next, you’ll get to know about Lists, the work horse data type for most functional languages. We show what structural sharing means and how it helps to make immutable data structures efficient and practical. Moving on, you will learn about binary trees, where we will be building complete trees, greedy algorithms, and back tracking</span></p> <h2><span class="sugar_field">Style and Approach</span></h2> <p><span class="sugar_field"><span id="trade_selling_points_c" class="sugar_field">Step-by-step topics will help you get started with functional programming. Learn by doing with hands-on code snippets that give you practical experience of the subject.</span></span></p>
Table of Contents (5 chapters)
Chapter 3
Lists
Content Locked
Section 8
Modifying a List Value
In this video, we will take a look at how to modify a list value. - Copy all the nodes on the path leading up to the modified node