for (1..5){ # hash tha data from smalo tables } while(1..10000){ # crosscheck with hash } so what i got is \theta(NH+K)