Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Connectivity #1

Open
haikov opened this issue Jan 9, 2019 · 0 comments
Open

Dynamic Connectivity #1

haikov opened this issue Jan 9, 2019 · 0 comments
Assignees
Labels

Comments

@haikov
Copy link
Owner

haikov commented Jan 9, 2019

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 them p and q) connected or not?

image

Algorithm's Requirements

  1. JS class that takes integer N as an initializer.
  2. Implements union(p: number, q: number): void method that creates a connection between 2 nodes.
  3. Implements find(p: number, q: number): boolean method that answers the question is p connected to q.

Implement the following algorithm's versions:

  1. Quick Find.
  2. Quick Union.
  3. Weighted Quick Union with Path Compressions.

UI Requirements

The UI should provide the ability to:

  1. Select an algorithm.
  2. Load seed data.
  3. Visualize the work of the algorithm.
@haikov haikov self-assigned this Jan 9, 2019
@haikov haikov added the coursera label Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant