Sparse and Scalable Modular Arithmetic

dc.contributor.authorChen, Benjamin
dc.date.accessioned2025-01-02T16:04:35Z
dc.date.available2025-01-02T16:04:35Z
dc.date.issued2025-01-02
dc.date.submitted2024-12-17
dc.description.abstractModular arithmetic is a crucial concept in computer algebra and finds extensive use in applications such as cryptography, polynomial GCD computations, and linear system solving. This thesis investigates methods to enhance the efficiency of modular arithmetic by focusing on choosing sparse and scalable moduli. A contribution of this work is the exploration of a balanced binary representation, which provides the sparsest way to represent integers. Techniques that convert to and from RNS (Residue Number System) using special form moduli (e.g. Mersenne type, Fermat type, and ``trinomial'' type) are also studied, demonstrating significant speedups over conventional division methods. The thesis also explores different schemes to generate scalable moduli sets. One important result is the discovery of a close relation between the inverses of the moduli in sparse balanced binary form and the inverses under a polynomial setting. This relation allows for the generation of scalable moduli sets with Fermat type numbers. We test the proposed improvements on modular arithmetic on a two-layer modular arithmetic scheme that leverages scalable moduli to improve the efficiency of RNS (Residue Number System) conversion and modular inverses to show the effectiveness of modular arithmetic with sparse and scalable moduli. Benchmark results demonstrate significant computational advantages achieved through these methods, offering scalable solutions for large integer operations.
dc.identifier.urihttps://hdl.handle.net/10012/21297
dc.language.isoen
dc.pendingfalse
dc.publisherUniversity of Waterlooen
dc.subjectmodular arithmetic
dc.titleSparse and Scalable Modular Arithmetic
dc.typeMaster Thesis
uws-etd.degreeMaster of Mathematics
uws-etd.degree.departmentDavid R. Cheriton School of Computer Science
uws-etd.degree.disciplineComputer Science
uws-etd.degree.grantorUniversity of Waterlooen
uws-etd.embargo.terms0
uws.contributor.advisorZima, Eugene
uws.contributor.advisorLabahn, George
uws.contributor.affiliation1Faculty of Mathematics
uws.peerReviewStatusUnrevieweden
uws.published.cityWaterlooen
uws.published.countryCanadaen
uws.published.provinceOntarioen
uws.scholarLevelGraduateen
uws.typeOfResourceTexten

Files

Original bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
Chen_Benjamin.pdf
Size:
246.82 KB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
6.4 KB
Format:
Item-specific license agreed upon to submission
Description: