lspitzner / lspitzner/pqueue

Add validity testing

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

Nobody has claimed this yet.

testing
Dominant language
Haskell
Stars
17
Forks
12
PR merge metrics
No merged PRs in 30d

Description

There are three invariants not enforced by the types:

  1. The child of a Skip can't be Empty (i.e., no trailing zeros).
  2. The key stored in the root node is minimal.
  3. The binomial trees are heap-ordered.

We should test that all operations produce valid queues.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by locating the queue type definitions and the implementations of all queue operations. Add validity tests covering the three stated invariants: no Empty child under Skip, a minimal root key, and heap-ordered binomial trees. Done means every operation is tested for producing valid queues.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.