while isSearching do
?2????????? ← ????????????????(?2)
∇???? ← ?2????????? − ?1?????????
?1 ← ?2
if ∇???? > 0 then
??? ← 0
?2 ← Run(?1)
???? ← ?2
else
?2 ← ??????(?1)
??? ← ??? + 1
?2 ← ?????????(?2, ????)
if ????????????(?2) then
??v???(?2)
else
?2 ← ??????(?1)
if ??? > ?????? then
???????ℎ??? ← ?????
??????????? ← ????
end
Can I get the logic and conversion of the above algorithm to cpp program?