Skip to content

feat(Maths): add baby-step giant-step discrete log - #1914

Open
felipeofdev-ai wants to merge 2 commits into
TheAlgorithms:masterfrom
felipeofdev-ai:feat/baby-step-giant-step
Open

feat(Maths): add baby-step giant-step discrete log#1914
felipeofdev-ai wants to merge 2 commits into
TheAlgorithms:masterfrom
felipeofdev-ai:feat/baby-step-giant-step

Conversation

@felipeofdev-ai

Copy link
Copy Markdown

Description

Adds Maths/BabyStepGiantStep.js implementing baby-step giant-step discrete logarithm modulo a prime.

Reference: https://en.wikipedia.org/wiki/Baby-step_giant-step

Checklist

  • I have read CONTRIBUTING.md
  • Tests added (Vitest)
  • DIRECTORY.md updated

— Felipe Fernandes · Systems & Agentic AI Engineer
https://github.com/felipeofdev-ai · https://felipeofdev-ai.github.io/

Classic BSGS discrete logarithm for prime moduli with Vitest coverage.
Signed-off-by: Felipe Fernandes <felipe.of.dev@gmail.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.58824% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.95%. Comparing base (5c39e87) to head (296b78d).

Files with missing linesPatch %Lines
Maths/BabyStepGiantStep.js95.58%3 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@## master #1914 +/- ##
==========================================
+ Coverage 85.91% 85.95% +0.03% 
==========================================
Files 379 380 +1 Lines 19778 19846 +68 Branches 3016 3036 +20 ==========================================
+ Hits 16993 17058 +65 - Misses 2785 2788 +3 

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@felipeofdev-ai@codecov-commenter