HashTables - Concepts, Theory , Questions - Codophilic:

 
HashTables - Concepts, Theory , Questions - Codophilic:

 liner search
 binary search --the sorted data needed lgN
 Hash Table- O(1) --constant time search
 
 Dynamic Set:
  -Insert(S,x)
  -Delete(S,x)
  -Search(S,x)
  
 Direct Address Tables:
 
 Problem: not applicable to strings or when m is very large(not enough memory)
 
 we use a hash funciton which maps h(x) -->y in (1..m)
 
 Challenge:
 when two keys maps to same y, we reslove using:
  --changing: List for each table slot
  --Open Addressing: Linear Probing
  --Bucket Addressing
 
 B*TREE
 B-TREE
 B+TREE
 
 B TREE or M TREE or Binary TREE
 
 Data Strcuture Tutorial #14 - AVL Tree
 
  ALV TREE should be height balanced tree with BF(Balance Factor) is no more than (-1, 0 1)

  LL LR RR RL rotation will be used to make the AVL tree to be rebanlanced;
 
 Data Structure Tutorial #2 - Sorting Techniques Session #1
 
  Below are the main Sorting techniques
  
   Radix Sort, Merge Sort,
   Bubble Sort  O(n^2)
   i=1,j=n then i=1 ,j=n-1 a[i] cmp a[i+1]
   Insertion Sort
     cmp with ajacent two O(n^2)
   Selection Sort O(N^2)
     a[1] cmp a[2-j] then a[2] cmp a[3-j]
   Quick SOrt
   

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值