Unrestricted Longest Path follow-ups from #966: an exact default solver, output description

Open
#999 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
backend

Research direction

Read the implementation of the Unrestricted Longest Path solver and find where outputDescription is defined; the issue does not name their files or tests. Check how other teaching-tool solvers handle time limits and defaults, then add an exact simple-path search as the default while keeping color coding available. Update the output description to match the returned path or {}.

Written by the indexing model from the issue text.

Description

good first issue

Follow-ups from the review of #966 (Unrestricted Longest Path). None of them block that PR.

  • Add an exact solver and make it the default. The only solver, Alon–Yuster–Zwick color coding, is randomized: a "no" answer ({}) has up to a 0.1% chance of being wrong, as its definition says. For a teaching tool, the default answer should always be right. A backtracking search over simple paths (depth-first from each vertex, stopping at K edges, checking timerHasExpired in the loop) would be exact and fast on the small instances people try. Color coding can stay as a second solver, which is a nice contrast to show.
  • Match outputDescription to the solver's answer. It says "True or False", but the solver returns the path itself, or {} when there is none.
Dominant language
C#
Stars
9
Forks
34
Avg merge
3d 2h
Merged PRs (30d)
41

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ReduxISU/Redux

All issues in ReduxISU/Redux

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.