
This video provides an overview of the entire course
In this video, we will attempt to explain what it means to program functionally and describe some advantages and benefits.
In this video, we will show how to get started with Scala, by setting up the SDK and the REPL.
In this video, we will have a look at our first algorithm, that of set intersection.
In this video, we will walk through the function solution for the same problem.
In this video, we will show simple implementations of both progressions. Later, we will show how we can generate both sequences using a more functional manner.
In this video, we will learn about Scala streams and we use them to generate Fibonacci numbers.
In this video, we will introduce greedy algorithms. We show a specific problem that can be solved greedily and present the solution’s pseudocode.
In this video, we will see the first greedy implementation for the problem presented in the previous section.
In this video, we will have a look at a more functional implementation for the greedy problem.
In this video, we will introduce the problem and algorithm invented by Dijkstra in 1961. We will show how the algorithm is split in two parts and explain the first part.
In this video, we will discuss how to evaluate postfix expressions after the infix conversion.
In this video, we will implement the final piece of our solution, that of evaluating the postfix expression. We then combine both the conversion and evaluation parts and get the full infix expression evaluation.
In this video, we will introduce background, history, and uses of prime numbers. Later, we will present the classic technique to generate prime numbers.
In this video, we will see two algorithms on generating prime numbers. We will first explore the classic sieve of Eratosthenes and later, we will see a variation of this called the segmented sieve.
Here we will see imperative implementations for both the sieve and the segmented sieve, both discussed in the previous section.
In this video, we will look at the problem from a different angle. We will discover that finding prime numbers can be done recursively if we use a property from the segmented sieve algorithm.
In this video, we present an example problem called the maximum sub array problem. We will show how re-encoding the input enables us to solve the problem in an easier manner.
In this video, we will see the first Scala implementation of the max sub array brute force algorithm.
In this video, we will discuss yet another algorithm that solves the maximum sub array problem. We will give the pseudocode of the algorithm but leave the implementation as an exercise for the reader.
Scala's functional programming features are a boon to help you design “easy to reason about” systems to control growing software complexities.
In this course, you will look at some classic simple algorithms. Most algorithms are traditionally defined in an imperative manner, typically consisting of repetitions in the form of conditional looping and altering states. Writing these in a functional manner is not always a trivial process. Moving ahead, you will learn to implement these elementary algorithms using a combination of functional concepts instead of the traditional imperative approach. After covering the important functional concepts in Scala you will move on to the decimal to binary conversion and generate sequences algorithms. Further, we will look at implementing a series of algorithms such as generating prime numbers, divide and conquer, greedy algorithms, and functional infix to postfix conversion.
By the end of this course, you will be well versed in the functional concepts of Scala and would have implemented all of these.
About the Author :
James Cutajar is a software developer with interests in scalable high performance computing and distributed algorithms. He is also an open source contributor, blogger, and tech evangelist. When he is not writing software, he is riding his motorbike, surfing, or flying light aircraft. He was born in Malta, lived for almost a decade in London, and is now working in Portugal.