Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Calculates number of possible android screen lock patterns

License

Notifications You must be signed in to change notification settings

Hawkuro/ScreenLockPatternCalc

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScreenLockPatternCalc

Calculates number of possible android screen lock patterns

To build

  1. Clone the repo
  2. Open the sln in Visual Studio 2015+
  3. Build the solution

Usage example

> ./ScreenLockPatternCalc.exe 3 3
Upper limit of 986409 distinct permutations
A 3 by 3 grid yields 389497 distinct possible permutations
Calculations took 00:00:00.5622309

Options

Options can be found in the App.config file

  • maxThreads: Maximum number of parallel threads used when calculating. Upper bound is the total number of nodes in the grid (e.g. for a 3x3 grid, 9)
  • printTime: Whether or not to print the amount of time calculations take
  • printUpperEstimate: Whether or not to print the estimated upper limit of permutations

Calculation time

The upper limit of possible permutations, i.e. ignoring the snapping if you skip over a node, is , i.e. for each possible length of pattern , the number of permutations, summed.

This sum is according to this proof equal to , so we have an run time where is the total number of nodes.

About

Calculates number of possible android screen lock patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.