Tutorials
Courses
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
32.7K+ articles
Misc
7.8K+ articles
Mathematical
5.2K+ articles
Arrays
4.2K+ articles
Strings
2.1K+ articles
Greedy
1.4K+ articles
Sorting
1.1K+ articles
Dynamic Programming
1.1K+ articles
Searching
1.0K+ articles
Tree
919+ articles
DSA
/
Algorithms
/
Randomized
Randomized
46 posts
Recent Articles
Popular Articles
std::uniform_int_distribution class in C++
Last Updated: 08 May 2024
In Probability, Discrete Uniform Distribution Function refers to the distribution with constant probability for discrete values over a range and zero probability outside t...
read more
Mathematical
Randomized
C++ Programs
DSA
cpp-class
cpp-random
std::uniform_real_ distribution class in C++ with Examples
Last Updated: 01 March 2024
In Probability, Uniform Distribution Function refers to the distribution in which the probabilities are defined on a continuous random variable, one which can take any val...
read more
Randomized
C++ Programs
C++
DSA
cpp-class
cpp-random
Maximum String Partition
Last Updated: 22 December 2022
Given a string. The task is to find the maximum number P, such that a given string can be partitioned into P contiguous substrings such that any two adjacent substrings mu...
read more
Strings
Analysis of Algorithms
Greedy
Randomized
DSA
substring
Slow Start Backoff Algorithm for Ad-Hoc
Last Updated: 28 April 2025
If the receiver proclaims a large window-size, larger than what the network en-route can manage, then there will always be packet losses. So there will be re-transmissions...
read more
Mathematical
Randomized
C++ Programs
Computer Subject
Computer Networks
Articles
DSA
Find N random points within a Circle
Last Updated: 22 June 2022
Given four integers N, R, X, and Y such that it represents a circle of radius R with [X, Y] as coordinates of the center. The task is to find N random points inside or on ...
read more
Geometric
Randomized
DSA
school-programming
circle
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
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
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
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 !