From 1ec73929f3c486224773822f3caf35abff4671c2 Mon Sep 17 00:00:00 2001 From: Tunahan Turker Erturk <89503561+tunisch@users.noreply.github.com> Date: Fri, 23 Jan 2026 17:25:14 +0300 Subject: [PATCH 1/2] Update project name and description in README changed content to readme.md file --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3e6d8f0..bc2dc2a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ -# data-structer -"Implementations of common data structures with examples and tests." +# Binary Search Tree Projesi +## Proje 4 +**[7, 5, 1, 8, 3, 6, 0, 9, 4, 2]** dizisinin Binary-Search-Tree aşamalarını yazınız. + +- Örnek: root x'dir. root'un sağından y bulunur. Solunda z bulunur vb. From 80e68f2011c947c62d5dc0020cd667099a909436 Mon Sep 17 00:00:00 2001 From: Tunahan Turker Erturk <89503561+tunisch@users.noreply.github.com> Date: Fri, 23 Jan 2026 17:45:55 +0300 Subject: [PATCH 2/2] Add project documentation for binary search tree Document the structure and insertion process of a binary search tree. --- binary-search-tree-project.md | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 binary-search-tree-project.md diff --git a/binary-search-tree-project.md b/binary-search-tree-project.md new file mode 100644 index 0000000..457bab9 --- /dev/null +++ b/binary-search-tree-project.md @@ -0,0 +1,44 @@ +# Project 4 + +**[7, 5, 1, 8, 3, 6, 0, 9, 4, 2]** + +ilk gelen root olduguna gore root: 7 dir + +- 5 < 7 olduğu için + - 7’nin soluna 5 eklenir. + +- 1 < 7 ve 1 < 5 olduğu için + - 5’in soluna 1 eklenir. + +- 8 > 7 olduğu için + - 7’nin sağına 8 eklenir. + +- 3 < 7, 3 < 5, 3 > 1 olduğu için + - 1’in sağına 3 eklenir. + +- 6 < 7 ve 6 > 5 olduğu için + - 5’in sağına 6 eklenir. + +- 0 < 7, 0 < 5, 0 < 1 olduğu için + - 1’in soluna 0 eklenir. + +- 9 > 7 ve 9 > 8 olduğu için + - 8’in sağına 9 eklenir. + +- 4 < 7, 4 < 5, 4 > 1, 4 > 3 olduğu için + - 3’ün sağına 4 eklenir. + +- 2 < 7, 2 < 5, 2 > 1, 2 < 3 olduğu için + - 3’ün soluna 2 eklenir. + +``` + 7 + / \ + 5 8 + / \ \ + 1 6 9 + / \ + 0 3 + / \ + 2 4 +```