You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a set of N items. Some of them are connected between each other. The problem here is to answer the questions, are two items (let's call them p and q) connected or not?
Algorithm's Requirements
JS class that takes integer N as an initializer.
Implements union(p: number, q: number): void method that creates a connection between 2 nodes.
Implements find(p: number, q: number): boolean method that answers the question is p connected to q.
Implement the following algorithm's versions:
Quick Find.
Quick Union.
Weighted Quick Union with Path Compressions.
UI Requirements
The UI should provide the ability to:
Select an algorithm.
Load seed data.
Visualize the work of the algorithm.
The text was updated successfully, but these errors were encountered:
Description
Given a set of
N
items. Some of them are connected between each other. The problem here is to answer the questions, are two items (let's call themp
andq
) connected or not?Algorithm's Requirements
N
as an initializer.union(p: number, q: number): void
method that creates a connection between 2 nodes.find(p: number, q: number): boolean
method that answers the question isp
connected toq
.Implement the following algorithm's versions:
UI Requirements
The UI should provide the ability to:
The text was updated successfully, but these errors were encountered: