KicunKrzysztof / AZPro

Console application that checks if Logo program has intersection in O(nLog(n)) time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AZPro

Console application that checks if Logo program has intersection in O(nLog(n)) time

To comply time complexity, application employs sweep line algorithm, which uses AVL tree data structure. Both algorithm and tree was implemented within project.

Documentation (PL): doc.

Examples

  • intersection:
fd 10 lt 90 fd 5 lt 90 fd 5 lt 90 fd 10
--------------------------------------------------------
Program logo: "fd 10 lt 90 fd 5 lt 90 fd 5 lt 90 fd 10"
Zawiera przecięcie
  • no intersection:
fd 10 lt 90 fd 30
--------------------------------------------------------
Program logo: "fd 10 lt 90 fd 30"
Nie zawiera przecięcia

About

Console application that checks if Logo program has intersection in O(nLog(n)) time


Languages

Language:C# 100.0%