Module Overview

This module will teach you the underlying concepts and equip you with the techniques needed to use heaps to efficiently solve a diverse range of problems. In many problems, we need to find the k most/least frequent or k largest/smallest elements in a given set of elements. Such problems, common in data analysis, natural language processing, online algorithms, as well as in recommendation systems, may be solved using the Top K Elements pattern. The fast insertion and deletion operations possible with heaps make them ideal to implement efficient algorithms for such problems. Further, we can use two heaps when we need to simultaneously keep track of the k largest elements in a set, as well as the k smallest elements in the same set. Extending this idea, each heap may be based on a separate dataset. These techniques are used to solve problems categorized under the Two Heaps pattern.

Module Objectives

Hands-on experience with using the Top K Elements pattern

A working knowledge of the Two Heaps pattern

The ability to recognize opportunities to use heaps to optimize algorithms

Lifetime Discount 50% OFF

Standard

 $25 

$12

.50

per mo,

billed annually ($149)

4 interest-free payments

Module 4

Content (Module 5)
Module 6

Module 4

Content (Module 5)
Module 6

Lifetime Discount 50% OFF

Standard

 $25 

$12

.50

per mo,

billed annually ($149)

4 interest-free payments