From 1d901bcc8161594ef8179d5d2f6c66bfdeadac88 Mon Sep 17 00:00:00 2001 From: Mohanad Talat Date: Thu, 28 Apr 2022 06:09:30 +0200 Subject: [PATCH] Update Hash Table --- .../.settings/language.settings.xml | 4 ++-- .../CPlusPlus/Hash-Table/Debug/src/Node.o | Bin 61003 -> 61003 bytes .../Hash-Table/src/LinearProbing.cpp | 2 ++ .../CPlusPlus/Hash-Table/src/LinearProbing.h | 7 +++++++ algorithms/CPlusPlus/Hash-Table/src/Node.cpp | 4 ++++ algorithms/CPlusPlus/Hash-Table/src/Node.h | 6 ++++++ .../CPlusPlus/Hash-Table/src/entity.cpp | 2 ++ algorithms/CPlusPlus/Hash-Table/src/entity.h | 2 ++ .../CPlusPlus/Hash-Table/src/hashTable.cpp | 1 + .../CPlusPlus/Hash-Table/src/hashTable.h | 5 +++++ algorithms/CPlusPlus/Hash-Table/src/main.cpp | 4 ++++ 11 files changed, 35 insertions(+), 2 deletions(-) diff --git a/algorithms/CPlusPlus/Hash-Table/.settings/language.settings.xml b/algorithms/CPlusPlus/Hash-Table/.settings/language.settings.xml index c8cb37cc..d2a8bdd3 100644 --- a/algorithms/CPlusPlus/Hash-Table/.settings/language.settings.xml +++ b/algorithms/CPlusPlus/Hash-Table/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/algorithms/CPlusPlus/Hash-Table/Debug/src/Node.o b/algorithms/CPlusPlus/Hash-Table/Debug/src/Node.o index 787c88e457ef759caee462ff13789f435c7be474..5bb75a847d5088e207f2baaedebf91a12a51f8a4 100644 GIT binary patch delta 51 zcmX?ohxzm!<_$qfvaAdX;usiq0I_FDMrJXX<)4yRk{Hjx#JV{@iKmuPY;(>1^Lzl% C)e&R> delta 51 zcmX?ohxzm!<_$qfvdjz%;usiq0I_FDMrJXX<)4yRk{Hjx#Jo8_iKmuPWOL2^^Lzl% CT@hXY diff --git a/algorithms/CPlusPlus/Hash-Table/src/LinearProbing.cpp b/algorithms/CPlusPlus/Hash-Table/src/LinearProbing.cpp index 9233772c..66db137b 100644 --- a/algorithms/CPlusPlus/Hash-Table/src/LinearProbing.cpp +++ b/algorithms/CPlusPlus/Hash-Table/src/LinearProbing.cpp @@ -79,3 +79,5 @@ void LinearProbing::getContact(entity &contact){ + + diff --git a/algorithms/CPlusPlus/Hash-Table/src/LinearProbing.h b/algorithms/CPlusPlus/Hash-Table/src/LinearProbing.h index bebb6445..fa8a911d 100644 --- a/algorithms/CPlusPlus/Hash-Table/src/LinearProbing.h +++ b/algorithms/CPlusPlus/Hash-Table/src/LinearProbing.h @@ -23,3 +23,10 @@ public: }; #endif /* LINEARPROBING_H_ */ + + + + + + + diff --git a/algorithms/CPlusPlus/Hash-Table/src/Node.cpp b/algorithms/CPlusPlus/Hash-Table/src/Node.cpp index 9c354204..7f1a9612 100644 --- a/algorithms/CPlusPlus/Hash-Table/src/Node.cpp +++ b/algorithms/CPlusPlus/Hash-Table/src/Node.cpp @@ -1,7 +1,11 @@ #include "Node.h" #include "entity.h" + + Node::Node(entity data_) { data = data_ ; next = 0 ; } + + diff --git a/algorithms/CPlusPlus/Hash-Table/src/Node.h b/algorithms/CPlusPlus/Hash-Table/src/Node.h index c3dac183..931f3c5d 100644 --- a/algorithms/CPlusPlus/Hash-Table/src/Node.h +++ b/algorithms/CPlusPlus/Hash-Table/src/Node.h @@ -14,3 +14,9 @@ public: }; #endif /* NODE_H_ */ + + + + + + diff --git a/algorithms/CPlusPlus/Hash-Table/src/entity.cpp b/algorithms/CPlusPlus/Hash-Table/src/entity.cpp index 7bf140a8..130aa76f 100644 --- a/algorithms/CPlusPlus/Hash-Table/src/entity.cpp +++ b/algorithms/CPlusPlus/Hash-Table/src/entity.cpp @@ -91,3 +91,5 @@ void entity::setNameNumber(string name_, int number_){ name = name_ ; phoneNumber = number_ ; } + + diff --git a/algorithms/CPlusPlus/Hash-Table/src/entity.h b/algorithms/CPlusPlus/Hash-Table/src/entity.h index 5bf0acac..ec21a860 100644 --- a/algorithms/CPlusPlus/Hash-Table/src/entity.h +++ b/algorithms/CPlusPlus/Hash-Table/src/entity.h @@ -25,3 +25,5 @@ public: }; #endif // PHONEENTRY_H + + diff --git a/algorithms/CPlusPlus/Hash-Table/src/hashTable.cpp b/algorithms/CPlusPlus/Hash-Table/src/hashTable.cpp index 44754ae8..082220c1 100644 --- a/algorithms/CPlusPlus/Hash-Table/src/hashTable.cpp +++ b/algorithms/CPlusPlus/Hash-Table/src/hashTable.cpp @@ -137,3 +137,4 @@ void hashTable::rehash(){ } + diff --git a/algorithms/CPlusPlus/Hash-Table/src/hashTable.h b/algorithms/CPlusPlus/Hash-Table/src/hashTable.h index 7723d9fe..5808e83a 100644 --- a/algorithms/CPlusPlus/Hash-Table/src/hashTable.h +++ b/algorithms/CPlusPlus/Hash-Table/src/hashTable.h @@ -28,3 +28,8 @@ public: }; #endif // PHONEHASHTABLE_H + + + + + diff --git a/algorithms/CPlusPlus/Hash-Table/src/main.cpp b/algorithms/CPlusPlus/Hash-Table/src/main.cpp index 9ba13cef..b908c5ab 100644 --- a/algorithms/CPlusPlus/Hash-Table/src/main.cpp +++ b/algorithms/CPlusPlus/Hash-Table/src/main.cpp @@ -82,3 +82,7 @@ int main() { return 0; } + + + +