Advanced Algorithms Flashcards

1
Q

Advanced Algorithms

A

Advanced algorithms are complex algorithms used to solve specialized problems. Examples include Convex Hull algorithms, Segment Tree, Fenwick Tree (Binary Indexed Tree), Range Minimum Query (RMQ), and Suffix Array with Longest Common Prefix (LCP).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Convex Hull

A

The Convex Hull of a set of points is the smallest convex polygon that encloses all the points. It is commonly used in computational geometry and is essential for problems like finding the outer boundary of a set of points.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Segment Tree

A

A Segment Tree is a versatile data structure used for various range-querying operations on an array or list, such as finding the minimum, maximum, or sum of elements within a specified range. It is a binary tree where each node represents a range of elements and stores precomputed information to expedite range queries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fenwick Tree (Binary Indexed Tree)

A

A Fenwick Tree, also known as a Binary Indexed Tree (BIT), is a data structure used to efficiently update and query prefix sums of an array. It enables quick updates and queries for cumulative sums of elements in an array, making it useful for problems like range updates and range queries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Range Minimum Query (RMQ)

A

Range Minimum Query (RMQ) refers to the problem of finding the minimum element within a specified range of an array. It is a common problem in computer science and can be efficiently solved using data structures like Segment Trees and Fenwick Trees.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Suffix Array and Longest Common Prefix (LCP)

A

A Suffix Array is an array of all suffixes of a given string, sorted lexicographically. It is often used in string matching and text compression algorithms. The Longest Common Prefix (LCP) array accompanies the Suffix Array and stores the length of the longest common prefix between adjacent suffixes in the sorted order.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly