I am new to programming and want to learn how to compare algorithms having the same complexity and pick the best one. Certain problems can be sloved using several algorithms which have the same complexity. How do i compare such algorithms
By "having the same complexity" I assume you mean having the same time complexity.
If you have done fine analysis of time complexity of these algorithms then there may be hidden constants or factors of lower degree polynomials which are ignored when you compare using big-O notation but have effect in practice. For example, if one algorithm always takes $n^2 + 100n + 10000$ steps and the second one takes $0.3n^2$ then the second one would be a better choice, though both run in $O(n^2)$.
You could also consider their space complexity and choose one which consumes less memory if the memory consumption matters and more important than the time complexity.
If you aim to implement these algorithms yourself and use it in your commercial application (or something like that) then you could think about how easy they are implemented and how easy these algorithms scale.
If you develop software, it doesn't matter how fast an algorithm is, what matters is that it meets your requirements. Once you have an algorithm that works, and meets the requirements, the cost of making a second algorithm work, and comparing it with the first algorithm, can be very high. And you have only a 50% chance that the second algorithm is better, and a possibly much lower chance that it is better in a meaningful way.