Python Programming – Union-Find Algorithm | Set 1 (Detect Cycle in an Undirected Graph) – Graph Algorithms – A disjoint-set data structure is a data.
Algorithm
How to check if given four points form a square-Geometric Algorithm Given coordinates of four points in a plane, find if the four points form square or not.
Multiply a given Integer with 3.5 – Bit Algorithm – Given a integer x, write a function that multiplies x with 3.5 and returns the integer result.
Check whether a given point lies inside a triangle or not – Geometric Algorithm – Given three corner points of a triangle, and one more point P.
Python Programming – Edit Distance – Dynamic Programming – The process all characters one by one staring from either from left or right sides of both string
Java Programming Edit Distance – Dynamic Programming – Idea is process all characters one by one staring from either from left or right sides of both string
Add 1 to a given number – Bit Algorithm – Add 1 to a given number write a program to add 1 to a given number. You are not allowed to use operators like ‘+’,
Detect Cycle in a Directed Graph – Graph Algorithms – Given a directed graph, check whether the graph contains a cycle or not.
Given n line segments, find if any two segments intersect – Geometric Algorithm – We have discussed the problem to detect if two given line segments.
C++ Programming Edit Distance – Dynamic Programming – Idea is process all characters one by one staring from either from left or right sides of both strings