3 ms·
You don't need the C standard library to write algorithms in C. Therefore you can do computational complexity analysis that is independent of the C language im
by haberman 17y ago
You don't need the C standard library to write algorithms in C. Therefore you can do computational complexity analysis that is independent of the C language implementation.
(I don't actually think you could name a function from the ISO C standard library that differs in complexity across implementations, but it's besides the point).
- foldr 17y agoYou don't need malloc, then? Please explain.
- haberman 17y agoIf you're analyzing complexity and your algorithm needs malloc(), then you implement and analyze malloc(). For example, see Knuth section 2.5. By the way, do you have a point to make, or do you just enjoy being brusque?
- foldr 17y agoI don't understand you here. If you write an algorithm in C that uses malloc, it will perform differently on different C implementations. This is exactly parallel to the fashion in which your python program will perform differently on different python implementations.