T(n) = 2T(√n) + 1
Put n = 2K
T(2K) = 2T(2K/2) + 1
T(2K) = δ(K)
By master's theorem
δ(K) = θ(K)
T(2K) = θ(K)
T(n) = θ(log n) ∵ 2K = n
By master's theorem
δ(K) = θ(K)
T(2K) = θ(K)
T(n) = θ(log n) ∵ 2K = n
By master's theorem
δ(K) = θ(K)
T(2K) = θ(K)
T(n) = θ(log n) ∵ 2K = n
∴ Post order is 2, 7, 6, 10, 9, 8, 15, 17, 20, 19, 16, 12Saved in this browser. Nothing changes for anyone else.