This program recognizes line patterns in a given set of points.
Given a set of n distinct points in the plane, the program will find and draw every line segment that connects a subset of 4 or more of the points.
Project Structure
- src: project source code
- test: JUnit tests and testing data
- lib_deps: library dependencies
- nbproject
- build.xml: auto-generated Ant build file
Prerequisites
- NetBeans IDE - for download and install go to https://netbeans.org/
- algs4.jar - make sure you have the lib_deps folder in your class path.
Installing
- Download the project on your drive.
- Open NetBeans and open the downloaded project.
Testing
- Add the desired test file as an argument: go to Properties, Run, Arguments - for example: "test\input\input8.txt".
- Run the project.
- Compare your graphic output with the image provided a reference in the Test Packages/input folder.
Author
Andreea Teodor
Credits
This program was written as part of an assignment for: Algorithms, Part I by Princeton University on Coursera.