3 votes 3 votes Access time of the symbol table will be logarithmic, if it is implemented by a linear list search tree hash table none of the above Compiler Design compiler-design symbol-table + – Anonymous asked Sep 7, 2015 • retagged Jul 2, 2022 by Lakshman Bhaiya Anonymous 7.8k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply ManojK commented Jul 3, 2016 reply Follow Share ISRO 2016 0 votes 0 votes Ronak.e3 commented Apr 12, 2020 reply Follow Share Options a 0 votes 0 votes Please log in or register to add a comment.
9 votes 9 votes A. Linear list : on average O(n/2) i.e linear complexity B. Search tree : on aaverage O(logn) i.e. logarithmic complexity. //Answer C. Hash table : Perfect Hashing leads to O(1) i.e. constant complexity. Digvijay Pandey answered Sep 7, 2015 Digvijay Pandey comment Share Follow See all 4 Comments See all 4 4 Comments reply Tendua commented Sep 7, 2015 reply Follow Share how??? 0 votes 0 votes ANI commented Sep 7, 2015 reply Follow Share thank you sir.i was wrong . bst has average case of logn 0 votes 0 votes Tendua commented Sep 7, 2015 reply Follow Share if non of these is the option and we have such methods which will give time complexity always o(logn) why we will take average and one more thing O(1) constant time for perfect hashing . how ?? 0 votes 0 votes shekhar chauhan commented Jul 11, 2016 reply Follow Share why have you consider avg case in case of search tree ..If tree is not balanced it can be skewed in that case complexity will be o(n). so there is no point of considering avg case in case of search tree just to match the answer . A fair decision should be either to consider all best case or worst case....the safest assumption is to go with option D. 3 votes 3 votes Please log in or register to add a comment.
0 votes 0 votes I feel it should be hash table as hashing using linear probing has a success rate of O{(1/x) *log(1/(1-x)) } where x is load factor i.e x = number of entries filled up / total number of places/entries that can be filled in table ANI answered Sep 7, 2015 ANI comment Share Follow See all 4 Comments See all 4 4 Comments reply Tendua commented Sep 7, 2015 reply Follow Share even linear probing has the retrival time of o(n). how it can be log n. 0 votes 0 votes ANI commented Sep 7, 2015 reply Follow Share i again got confused.if we insert using linear probing and our location can be found in that time then w must be able to search even . i am very confused 0 votes 0 votes ANI commented Sep 7, 2015 reply Follow Share linear probing can i feel but provided keys are is well distributed hash function.this is the assumption just coz lookup funtion i.e to search using probing technique has the time complexity of that i mentioned 0 votes 0 votes ANI commented Sep 7, 2015 reply Follow Share ha.lekin probe toh waha se suru hoga jo hash function compute karega na. maine ye assume kar ke bola ki randomly ya oneafter other hash function insert nehi karti hain.but it distributs uniformly. tas y i am confused.i got it but still i feel it depends on hash function. i feel it depends on hash function 0 votes 0 votes Please log in or register to add a comment.