From b3c445d1ea9345b89d2f825a73c1304a52a14ea1 Mon Sep 17 00:00:00 2001 From: Alexander Druzhynin Date: Fri, 27 Jun 2025 23:13:40 +0300 Subject: [PATCH] Add Java unit tests and expand README --- README.md | 30 +++++++++++++--- java_impl/tests/SimplePointsFinderTest.java | 36 +++++++++++++++++++ .../com/sun/istack/internal/NotNull.java | 5 +++ python_impl/tests/test_algorythm.py | 23 ++++++++++++ 4 files changed, 90 insertions(+), 4 deletions(-) create mode 100644 java_impl/tests/SimplePointsFinderTest.java create mode 100644 java_impl/tests/com/sun/istack/internal/NotNull.java create mode 100644 python_impl/tests/test_algorythm.py diff --git a/README.md b/README.md index 4eab1a4..8b8a2dd 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@ -dotsPlacementIssue +2D Point Triangulation ============================ -Algorithm solves the problem of the points placement according to the length which is specified in the matrix. +This project is dedicated to positioning (triangulating) points in a two-dimensional +Cartesian system, where the origin is always fixed at `(0, 0)`. The algorithms +reconstruct coordinates using a matrix of pairwise Manhattan distances between +points. -Implantation details +Implementation details ============================ The main idea of this algorithm is to try every possible combination of calculated coordinates until the correct answer(s) is found. This is a recursive algorithm with backtracking approach. @@ -65,7 +68,7 @@ According to the matrix we can say the distance between two dots.
Thus, the