I know basic heap operations like insertion,deletion,finding minimum etc.I know deletion at certain index like deletion of element present at index 2 or so,but how to delete if we are to delete certain value that is present in the heap ?
In my opinion first we have to find the position of the certain element and than have to delete like we usually do.Pseudo code is welcome.
My question is :- How to delete certain valued element from heap and what will be the overall time complexity ?