Skip to content

Barbalho12/find-magic-squares

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find Magic Squares

Single Thread

The program was developed in Java and has two approaches. The first is composed of two classes contained in a single file, to facilitate execution. To execute it is necessary to access the directory of the class and execute:

javac MagicSquareNormal.java
java MagicSquareNormal

Multi Threads

The second approach is an adaptation to execution in multithreading, which consists of three classes divided into three files. The program provides an execution in four parallel threads in the most complex stretch of the algorithm. To execute it is necessary to access the directory of the class and execute:

javac MainThreads.java
java MainThreads

About

Find all 5x5 size magic squares in two approaches

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages