HELLOW ! TKAE MY SALAM , Asslamualikum guys;
like i was downloading cph book as i heard that it is a very good book to know and get idea about some techniques and topic,
and doing random shuffle as i do not understand that much till now , but in the last page of chapter 4 it said like there are two arrays and we have to find the count of common elements , so they use in the algorithm 2 a unordered set and it take o(n)complecity but by sorting (algo 3) it takes o(nlongn) by stl sort i personally never use unordered set so I do not know how to use it but in theoretical prespective if n>10 then nlongn>n so why the book says it cosume less time(algo3) than algo 2 kindly pls help me it will be a great pleasure for me ^-^; and also I found the chapter 5 very hard like i do not understnad it at all so any advie regrading it also be appreciated :) thanks in advance :)







