#dsa

Found 31 articles tagged with #dsa

Median of Two Sorted Arrays

The median is defined as the middle element of a sorted array, or the average of the middle two elements if the array has an even number of elements.

Caesar Cipher

A type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet.

Sep 19, 2022#dsa#algorithms

QuickSort with C++ Implementation

A sorting algorithm that picks an element as a pivot and partitions the given array around the picked pivot, sometimes called partition-exchange sort.

Different Types of Queue

Queues are specifically designed to operate in a FIFO context, where elements are inserted into one end of the container and extracted from the other.

Data Structures Used in Competitive Programming

It's important to learn basic data structures inside out, otherwise understanding higher level structures will be difficult.

Bloom Filter

A time and space efficient probabilistic data structure designed to test whether an element is present in a set.

Competitive Programming Topics

Often a solution to a problem in competitive programming is a combination of well-known methods and new insights.

Feb 02, 2022#dsa#cp

Dynamic Programming (DP)

An optimization over plain recursion when we cache the results of subproblems to reduce time complexity from exponetial to polynomial.

Jan 16, 2022#dsa#dp#algorithms

Rabin–Karp String Searching

An algorithm created by Richard M. Karp and Michael O. Rabin that uses hashing to find any one of a set of pattern strings in a text.

May 12, 2021#dsa#algorithms

Big-O Notation

Big-O notation gives you a rough indication of the running time of an algorithm and the amount of memory it uses. This allows you to pick the right algorithm for the job.

Nov 11, 2019#dsa#algorithms