Computer Science Asked by keith Paton on February 8, 2021
I want to know the speed of preorder traversal of an tree. I do not mean its order of magntude which we know is O(n).
I want something like 27n operations where an operation is precisely defined.
Thanks
It's not answerable in the abstract, without a lot more specifics. It depends on intimate specifics of the computer architecture, what counts as "one" operation, how the tree is represented, and many other details that are usually considered a distraction for purposes of analysis of algorithms. And it wouldn't really be useful in practice anyway; these days, the time it takes for an algorithm to complete depends on a lot more than the number of operations. Not all operations take the same amount of time, and more importantly, the memory hierarchy plays a huge role in influencing the running time, and you can't measure its impact by counting operations.
Answered by D.W. on February 8, 2021
1 Asked on November 5, 2021
computer architecture cpu process scheduling scheduling threads
1 Asked on November 5, 2021
0 Asked on November 5, 2021
1 Asked on November 5, 2021
1 Asked on October 21, 2021
2 Asked on October 21, 2021
graphs hamiltonian circuit hamiltonian path np complete polynomial time reductions
2 Asked on October 21, 2021 by schleudergang
1 Asked on October 21, 2021 by mmbs
1 Asked on October 21, 2021 by veree
1 Asked on October 21, 2021 by nurin-izzati-jafri
0 Asked on October 21, 2021
1 Asked on October 21, 2021 by mgus
0 Asked on October 21, 2021 by heroman
2 Asked on October 21, 2021
1 Asked on October 21, 2021 by atsina
complexity classes decision problem definitions np proof techniques
0 Asked on October 21, 2021
algorithm analysis algorithms amortized analysis heaps runtime analysis
0 Asked on October 21, 2021 by srajan
1 Asked on October 21, 2021 by fluffysheap
1 Asked on October 21, 2021 by james-flanagin
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP