Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lowtalker/Java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: TheAlgorithms/Java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 5 files changed
  • 3 contributors

Commits on Sep 11, 2026

  1. feat: add WelfordAlgorithm, online mean and variance in one pass (The…

    …Algorithms#7602)
    
    Welford's recurrence keeps a running mean and the sum of squared deviations from it, so it never forms the large nearly equal intermediate values that make the textbook variance formula lose its significant digits, and it needs O(1) time per sample and O(1) memory regardless of the stream length.
    
    Beyond the plain accumulation it supports removal, which runs the recurrence backwards and turns the accumulator into the statistics of a sliding window, and a static merge implementing Chan's parallel update so partial results from different shards combine exactly.
    
    Signed-off-by: alxkm <[email protected]>
    Co-authored-by: alxkm <[email protected]>
    alxkm and alxkm authored Sep 11, 2026
    Configuration menu
    Copy the full SHA
    a097a28 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2026

  1. feat: add P2QuantileEstimator, one quantile of a stream in constant m…

    …emory (TheAlgorithms#7603)
    
    The P-square algorithm of Jain and Chlamtac keeps five markers instead of the samples, so a quantile of an unbounded stream costs O(1) time per sample and O(1) memory. Each marker is nudged towards its desired position with a piecewise parabolic prediction, falling back to a linear one whenever the parabola would break the ordering of the heights.
    
    The first five samples are kept verbatim, so the estimate is exact until the sixth arrives, and the minimum and maximum stay exact for the whole stream.
    
    Signed-off-by: alxkm <[email protected]>
    Co-authored-by: alxkm <[email protected]>
    alxkm and alxkm authored Sep 12, 2026
    Configuration menu
    Copy the full SHA
    c99b056 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2026

  1. chore(deps-dev): bump com.github.spotbugs:spotbugs-maven-plugin from …

    …4.10.4.0 to 4.10.4.1 (TheAlgorithms#7605)
    
    chore(deps-dev): bump com.github.spotbugs:spotbugs-maven-plugin
    
    Bumps [com.github.spotbugs:spotbugs-maven-plugin](https://github.com/spotbugs/spotbugs-maven-plugin) from 4.10.4.0 to 4.10.4.1.
    - [Release notes](https://github.com/spotbugs/spotbugs-maven-plugin/releases)
    - [Commits](spotbugs/spotbugs-maven-plugin@spotbugs-maven-plugin-4.10.4.0...spotbugs-maven-plugin-4.10.4.1)
    
    ---
    updated-dependencies:
    - dependency-name: com.github.spotbugs:spotbugs-maven-plugin
      dependency-version: 4.10.4.1
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 15, 2026
    Configuration menu
    Copy the full SHA
    b6fb8ad View commit details
    Browse the repository at this point in the history
Loading