From 90ab56cdb7ef7b7c09dd29cac2dffd027e059ba0 Mon Sep 17 00:00:00 2001 From: Mohit Singh Date: Thu, 20 Dec 2018 19:23:54 +0530 Subject: [PATCH] Hashing using Linear Probing --- .../Hashing-Using-Linear-Probing.c | 112 ++++++++++++++++++ Hashing Using Linear Probing/program | Bin 0 -> 12656 bytes 2 files changed, 112 insertions(+) create mode 100644 Hashing Using Linear Probing/Hashing-Using-Linear-Probing.c create mode 100644 Hashing Using Linear Probing/program diff --git a/Hashing Using Linear Probing/Hashing-Using-Linear-Probing.c b/Hashing Using Linear Probing/Hashing-Using-Linear-Probing.c new file mode 100644 index 0000000..3a882de --- /dev/null +++ b/Hashing Using Linear Probing/Hashing-Using-Linear-Probing.c @@ -0,0 +1,112 @@ +#include +#include + +#define TABLE_SIZE 5 + +void insert(int[], int); +void delete(int[], int); +void search(int[], int); +void display(int[]); + +int main() +{ + int htable[TABLE_SIZE]={}; + int i; + for(i=0;iToOhoFleP*2)LcmVa7P6duYkckb4&Cjg zHc|+xA<4;gf~vH2)m9>k+K{S$P_>OvS_y-r7%EkDs@s z@4UA@lB$aOmq*%tGr#vSZ{Ez#&hE^U!N&R`k4JFwiu(kWDyQ2>wPIA>sWKqdVw1Q5 z_glnbL1M)cv-#CF0oP7r$~4mwg?m9sZ&Q&Cxandg$CN!JI!*Bkk%}@KWh#Uw0n#I1 zkKH1Rpqk7u-LL%URFw6oNO~uf-U+40bW}OUl-oybqpL~TbJIHTC^02jN;}@M!j!L^ zEsK-rZW|U%S??j}sV-9zpH0dYd#9@JdU4sS{Aa3~D^^D%EgROaj)qr7Be7KHs?JRt zR&7}CPsaUgWxL5f$!^`=ENi0v=FpPQ^KcPH{1pv*zq@DWjCIEwXFhbt_YOQgf9?y{ zNS7~U|LfEONv(kN5@2%+;LEOqZ@vzG5V(fRov6Kq?9aRo-V0pA`z2uRvTEYogt$w5(`Bm2TT-6)ks>Qgk^Mu zA~CVGv7x5cSnJ=I%dPd_BaDWoZAREknEN70%S<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