8000 GitHub - ChrisVilches/Polygonal-Puzzle: A geometric algorithm that finds the maximum possible length of the common boundary of two polygons when they are optimally placed.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A geometric algorithm that finds the maximum possible length of the common boundary of two polygons when they are optimally placed.

Notifications You must be signed in to change notification settings

ChrisVilches/Polygonal-Puzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polygonal Puzzle

A geometric algorithm that finds the maximum possible length of the common boundary of two polygons when they are optimally placed.

Problem Source: ACM-ICPC World Finals 2016

Overview

A Rust solution for the Polygonal Puzzle problem.

Results are converted into SVG. Example:

Run

Run all tests manually (it uses the official test data):

cargo run --release < tests/data/input

Or compare output using cpdiff:

cargo run --release < tests/data/input | cpdiff tests/data/output

Format & Lint

cargo fmt
touch src/main.rs && touch src/lib.rs && cargo clippy

Testing

cargo test

Alternative Solution (C++)

Another solution in C++ is here.

About

A geometric algorithm that finds the maximum possible length of the common boundary of two polygons when they are optimally placed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0