Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
Competitive Programming
3.3K+ articles
Strings
3.3K+ articles
Greedy
2.1K+ articles
Algorithms
2.0K+ articles
Sorting
1.8K+ articles
Searching
1.7K+ articles
DSA
/
Algorithms
/
Randomized
Randomized
66 posts
Recent Articles
Popular Articles
Test Case Generation | Set 6 (Random Unweighted Binary Tree)
Last Updated: 17 April 2023
Generating Random Unweighted Binary Tree:Since this is a tree, the test data generation plan is such that no cycle gets formed.The number of edges is one less than the num...
read more
Tree
Queue
Algorithms
Randomized
C++
C++ Quiz
DSA
Binary Tree
BFS
cpp-queue
cpp-map
cpp-random
Find the player who wins the game by removing the last of given N cards
Last Updated: 04 May 2021
Given two integers N and K, where N represents the total number of cards present when game begins and K denotes the maximum number of cards that can be removed in a single...
read more
Greedy
Mathematical
Randomized
Game Theory
DSA
Number guessing game in C
Last Updated: 01 July 2022
Given an integer N. A number guessing game is a simple guessing game where a user is supposed to guess a number between 0 and N in a maximum of 10 attempts. The game will ...
read more
Randomized
Technical Scripter
C Programs
C Language
Technical Scripter 2020
DSA
Numbers
Generate a random Binary String of length N
Last Updated: 13 March 2023
Given a positive integer N, the task is to generate a random binary string of length N.Examples:Input: N = 7Output: 1000001Input: N = 5Output: 01001Approach: The given pro...
read more
Strings
Mathematical
Randomized
Competitive Programming
C++ Programs
C++
DSA
binary-string
cpp-random
Classification of Algorithms with Examples
Last Updated: 05 July 2021
There are many ways of classifying algorithms and a few of them are shown below:Implementation MethodDesign MethodOther ClassificationsClassification by Implementation Met...
read more
Bit Magic
Algorithms
Analysis of Algorithms
Dynamic Programming
Greedy
Backtracking
Pattern Searching
Divide and Conquer
Searching
Sorting
Mathematical
Geometric
Randomized
Combinatorial
Advanced Data Structure
Branch and Bound
Game Theory
Recursion
Data Structures
DSA Quiz
DSA
Estimating the value of Pi using Monte Carlo | Parallel Computing Method
Last Updated: 15 February 2023
Given two integers N and K representing number of trials and number of total threads in parallel processing. The task is to find the estimated value of PI using the Monte ...
read more
Mathematical
Randomized
C Programs
Operating Systems
DSA
Random Acyclic Maze Generator with given Entry and Exit point
Last Updated: 05 April 2023
Given two integers N and M, the task is to generate any N * M sized maze containing only 0 (representing a wall) and 1 (representing an empty space where one can move) wit...
read more
Graph
Randomized
DSA
Disjoint Set Union (Randomized Algorithm)
Last Updated: 01 August 2024
A Disjoint set union is an algorithm that is used to manage a collection of disjoint sets. A disjoint set is a set in which the elements are not in any other set. Also, kn...
read more
Randomized
Technical Scripter
Picked
Technical Scripter 2022
DSA
disjoint-set
C++ Program For Selecting A Random Node From A Singly Linked List
Last Updated: 17 August 2023
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
read more
Linked List
Randomized
C++ Programs
DSA
C Program For Selecting A Random Node From A Singly Linked List
Last Updated: 21 July 2022
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
read more
Linked List
Randomized
C Programs
DSA
Java Program For Selecting A Random Node From A Singly Linked List
Last Updated: 21 July 2022
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
read more
Linked List
Randomized
Java Programs
DSA
Python Program For Selecting A Random Node From A Singly Linked List
Last Updated: 21 July 2022
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
read more
Linked List
Randomized
Python Programs
DSA
Javascript Program For Selecting A Random Node From A Singly Linked List
Last Updated: 05 September 2024
Given a singly linked list, select a random node from the linked list (the probability of picking a node should be 1/N if there are N nodes in the list). You are given a r...
read more
Linked List
Randomized
JavaScript
Web Technologies
DSA
Randomized Algorithms
Last Updated: 02 December 2024
Randomized algorithms in data structures and algorithms (DSA) are algorithms that use randomness in their computations to achieve a desired outcome. These algorithms intro...
read more
Algorithms
Randomized
DSA
Randomized Algorithm in Python
Last Updated: 31 May 2024
Randomized algorithms are algorithms that use randomness as part of their logic to achieve efficiency and simplicity in solving computational problems. Unlike deterministi...
read more
Algorithms
Randomized
Picked
DSA
Python-DSA
1
2
3
4
5
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !