NTP-6: Modular Prime Fragmentation
Authors: Danthur Lice
Date of Creation: 2025-01-09
Date of Publication: 2025-02-03
License: NCL-11
1. Scope
2. Normative Principles
3. Preconditions and Scope Constraints
identifier
), such as an auto-increment ID or a timestamp in milliseconds.P
must be a prime number strictly greater than 1.4. Technical Specification
4.1 Fragment Assignment Logic
\text{Fragment} = \text{identifier} \mod P
identifier
is a consistent numeric key (e.g., timestamp
, recordId
);P
is a prime number representing the number of logical fragments;Fragment
is the integer remainder in the interval [0, P−1]
.4.2 Fragment Exclusivity and Collision Avoidance
P
. If P
is non-prime, remainders become non-uniform and overlapping due to shared factors.mod 4
):0, 2, 0, 2...
— overlap on even-numbered identifiers.0
— over-concentration on a single fragment.mod 7
):0, 1, 2, 3, 4, 5, 6
4.3 Full Dataset Query Strategy
1.
P
for the fragmentation base.2.
R ∈ [0, P−1]
, execute:
4.4 Parallel Processing Model
A dataset with 1 billion records is distributed to 97 workers using mod 97
.
P = 97
(a prime);R ∈ [0, 96]
;
5. Appendix
5.1 Comparison Table: Prime vs Non-Prime Modulo
Modulo Base | Prime? | Distribution | Collision Risk | Valid? |
---|---|---|---|---|
4 | ✗ | Biased | High | ✗ |
6 | ✗ | Colliding | High | ✗ |
7 | ✓ | Uniform | None | ✓ |
97 | ✓ | Uniform | None | ✓ |
5.2 Mathematical Justification
P
for any arbitrary n
forms a complete and uniform residue system when P
is prime.n mod P
maps uniquely to one of the P
fragments.6. References
7. Conclusion
8. Prior Art and Context
Modified at 2025-05-29 16:36:50