Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Are there any Computational problem with ϴ(logn)^2 algorithm?

Are there any real computaional problems which can be solved by time complexity of log(n) * log(n)?

  • This is different from finding smallest element in sorted matrix, which is log(n)+log(n) or 2log(n).

  • There are can be some kind of pattern printing algorithm which can be made as ϴ(logn)^2 but I’m not sure if they are classified as Computational Problems.

    MEDevel.com: Open-source for Healthcare and Education

    Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

    Visit Medevel

>Solution :

A range query on a d-dimensional range tree with k results runs in O(log^d(n) + k) time. So a query that you know will result in a bounded number of results on a 2-d range tree runs in O(log^2(n)) time.

See https://en.wikipedia.org/wiki/Range_tree

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading