adibaejaz / PrimeMap

A Java PrimeMap to map each element from an entered collection of objects to a unique prime number, together with a set of tools simplified by applying the Fundamental Theorem of Arithmetic.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PrimeMap

A Java class that defines a PrimeMap object that maps each element from a collection of objects to a unique prime number.

Used in:

  • An Anagrams checker that checks if words entered in the CLI are anagrams in O(n) time using the Fundamental Theorem of Arithmetic: each number can be decomposed into a unique combination of prime factors.

About

A Java PrimeMap to map each element from an entered collection of objects to a unique prime number, together with a set of tools simplified by applying the Fundamental Theorem of Arithmetic.


Languages

Language:Java 100.0%