Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zegalur/kobon-21
Optimal solution for the Kobon Triangle Problem with 21 lines
https://github.com/zegalur/kobon-21
Last synced: about 1 month ago
JSON representation
Optimal solution for the Kobon Triangle Problem with 21 lines
- Host: GitHub
- URL: https://github.com/zegalur/kobon-21
- Owner: zegalur
- Created: 2024-08-04T13:09:12.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-10-18T12:24:29.000Z (2 months ago)
- Last Synced: 2024-10-20T09:43:14.119Z (2 months ago)
- Language: HTML
- Size: 1.04 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kobon Triangle Problem (21 lines, 133 triangles)
![banner](imgs/img.png)
This repository provides an optimal solution for the Kobon Triangle Problem when using 21 lines. The Kobon Triangle Problem is a combinatorial geometry puzzle that involves finding the maximum number of non-overlapping triangles that can be formed using a given number of straight lines [(wikipedia)](https://en.wikipedia.org/wiki/Kobon_triangle_problem).
* [Raw Lines (TXT-file)](./n21_lines.txt)
* [HTML Preview](https://zegalur.github.io/kobon-21/n21_prev.html)## How It Was Constructed
By enclosing all the intersection points inside a large circle and numbering all `n` lines clockwise, each arrangement can be represented by a corresponding table:
![n5-example](imgs/scheme.png)
Studying the properties of these tables enabled the creation of an algorithm to find optimal tables for arrangements that match the upper-bound approximations for various `n`, including `n=21`.
After identifying the optimal table, the final arrangement was manually constructed using a specially-made editor.Here is how the editor looks for `n=9`:
![n9-editor](imgs/tool.png)
And here it is for `n=21`:
![n9-editor](imgs/tool_2.png)
## Other Important Results
The algorithm couldn't find any table for `n=11` with `33` triangles.
Therefore, the current best-known solution with `32` triangles is optimal, although this result has never been published nor independently verified.## References
* [Kobon triangle problem (Wikipedia)](https://en.wikipedia.org/wiki/Kobon_triangle_problem)
* [G. Clément and J. Bader. Tighter Upper Bound for the Number of Kobon Triangles. Draft Version, 2007](https://web.archive.org/web/20171111045109/http://www.tik.ee.ethz.ch/sop/publicationListFiles/cb2007a.pdf)*Pavlo Savchuk 2024*