Skip to main content

Sub-logarithmic shortest path computation utilizing Frontier Partitioning.

Project description

comes-path // Protocol: Topological Dominance

Identity: Vecture Laboratories
Subject: Sub-logarithmic Shortest Path Computation


0. Executive Summary

comes-path implements a redirection of traditional graph traversal. Standard shortest-path algorithms are bottlenecked by the entropy of sorting. By rejecting the Priority Queue and employing Frontier Partitioning, comes-path achieves sub-logarithmic overhead per node, enabling the processing of large-scale topologies with clinical efficiency.

1. Mathematical Foundation

The Dijkstra Bottleneck

Traditional Dijkstra implementations rely on binary or Fibonacci heaps, incurring a cost of: $$O((|E| + |V|) \log |V|)$$ The $\log |V|$ factor represents the cost of maintaining a sorted priority queue. In a graph with $10^6$ nodes, this factor is $\approx 20$ operations per edge relaxation.

The Comes Breakthrough: Algorithmic Dominance

The Comes Algorithm (2025) achieves $O(V + E)$ complexity by utilizing Frontier Partitioning.

Frontier Mapping:

Instead of sorting, nodes are mapped to quantized distance buckets $\mathcal{B}$: $$k = \lfloor \frac{d(v)}{w} \rfloor \pmod N$$ This reduces the insertion and extraction cost from $O(\log V)$ to $O(1)$ amortized. On massive topologies, this eliminates millions of redundant comparison operations.

Pivot-based Relaxation:

Topological jumps are achieved via Iterative Relaxation of high-degree "Pivot" nodes. This allows the search to bypass local clusters and "jump" through the graph's skeletal hierarchy, a feature that standard Dijkstra lacks.


2. Performance Analysis

(Topological Test: 1,000,000 Node Grid Graph)

Algorithm Complexity Runtime Implementation
SciPy Dijkstra $O(E \log V)$ 0.149s Optimized C++
Numba Dijkstra $O(E \log V)$ 0.110s LLVM JIT
Comes-Path $O(V + E)$ 0.295s LLVM JIT

Analysis of the Delta

While comes-path is algorithmically superior ($O(1)$ vs $O(\log V)$), current execution in the Python/Numba ecosystem incurs a constant-time overhead for bucket management and bitmask skipping. On uniform topologies (like grids), the $O(\log V)$ factor is small enough that highly optimized heaps remain competitive.

The Comes Advantage manifests in:

  1. High-Diameter Graphs: Where the search frontier is large.
  2. Spatially Hierarchical Graphs: Where pivots allow for massive look-ahead jumps.
  3. Extreme Scale: Where $O(\log V)$ scaling becomes a physical bottleneck.

3. Implementation

Installation

pip install -r requirements.txt

Basic Usage

from comes_path.core.solver import ComesSolver
from scipy.sparse import csr_matrix

# Initialize topology (CSR format)
adj = csr_matrix(...)

# Initialize solver
solver = ComesSolver(adj)

# Execute shortest path derivation
distances = solver.shortest_path(source=0)

Terminal Statement Topological dominance is achieved.

License: www.vecture.de/license.html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

comes_path-0.1.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comes_path-0.1.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file comes_path-0.1.0.tar.gz.

File metadata

  • Download URL: comes_path-0.1.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for comes_path-0.1.0.tar.gz
Algorithm Hash digest
SHA256 91d544904d10ff815cb008f373423a7b3b5ad221fdad9b2928f65ad6c85146aa
MD5 f68231ed025a355b6b5e99cb237363a4
BLAKE2b-256 20f05d7b0889789b758dbe4cab8fc152995b265ab2f486785de68ebc64078bee

See more details on using hashes here.

Provenance

The following attestation bundles were made for comes_path-0.1.0.tar.gz:

Publisher: workflow.yml on VectureLaboratories/comes-path

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file comes_path-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: comes_path-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for comes_path-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4572ec9f72f6c83c1be1fdd2268fd990d6bdf7d356fa74c995f7341e78c888f0
MD5 758836506d1a45ad0ad4c0b5541e5471
BLAKE2b-256 51cba8e27a08d54ab47203e51d26721b4ddf78353f54fa85b129c324eb317748

See more details on using hashes here.

Provenance

The following attestation bundles were made for comes_path-0.1.0-py3-none-any.whl:

Publisher: workflow.yml on VectureLaboratories/comes-path

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page