What is the time complexity of TreeSet iteration?
Posted
by John Smith
on Stack Overflow
See other posts from Stack Overflow
or by John Smith
Published on 2010-05-03T15:45:30Z
Indexed on
2010/05/03
15:48 UTC
Read the original article
Hit count: 201
In my code, java treeset iteration is the dominant time factor. In looking at the system I believe that it is n*log(n) complexity. Can anyone verify this? I am thinking that by providing links backward from child node to parent node I could improve the performance.
© Stack Overflow or respective owner