Home Week-7 Week-9

 

PDSA - Week 8

Divide and conquer

 

Divide and conquer example

Counting inversions

 

Implementation

Output

 

Closest pair of points

Pseudocode

Implementation

Output

 

Integer multiplication

Implementation

Output

 

Quick select and Fast select

Implementation

Output

 

Median of Medians(MoM)

Implementation

Output

 

Fast select using MOM

Implementation

Output

 

Recursion trees