time-complexity
Complexity of insertObject:atIndex:
What is the complexity of -[NSArray insertObject:atIndex:] -- N? or constant? Also, ho开发者_如何学运维w can I find out the complexity of various Objective-C statements?There is a discussion here and[详细]
2023-04-03 08:16 分类:问答Deleting an Element From a 2 Heap database
Assume we got 2 diffrent Heaps - first heap is a min heap and second heap is a max heap ,together, they contain n diffrent elements, with not nessecerly diffrent keys, I need to delete element x, whic[详细]
2023-04-03 01:34 分类:问答Why does the halting problem make it impossible for software to determine the time complexity of an algorithm
I\'ve read some articles about big-Oh calculation and the halting problem. Obviously it\'s not possible for ALL algoritms to say if they ever are going to stop, for example:[详细]
2023-04-02 21:35 分类:问答What are the time complexities of various data structures?
I am trying to list time complexities of operations of common data structures like Arrays, Binary Search Tree, Heap, Linked List, etc. and especially I am referring to Java. They are very common, but[详细]
2023-04-02 21:28 分类:问答Fuzzy matching deduplication in less than exponential time?
I have a large database (potentially in the millions of records) with relatively short strings of text (on the order of street address, names, etc).[详细]
2023-03-31 08:05 分类:问答For TimeComplexity analysis ima need help with a Summation
for an algorithm time complexity analysis i开发者_C百科 need to know what is the result of the summation of the function n/i when i runs from 1 to logn, i saw somewhere trustable that is actually the[详细]
2023-03-31 02:09 分类:问答Time complexity of System.arraycopy(...)?
System.arraycopy(Object src, int srcPos, Object dest, int destPos, int length) is a native method. What is the time complexity fo开发者_高级运维r this method?It will have to go through all the elemen[详细]
2023-03-30 18:56 分类:问答Relation of time complexity and space complexity
Can an algorithm having a time complexity of O(n) have a space complexity of O(n2) or more tha开发者_如何学Pythonn that?The space complexity cannot be more than the time complexity because writing X u[详细]
2023-03-29 17:15 分类:问答Big-O and equals sign, abuse of notation
Wikipedia says: The statement \"f(x) is O(g(x))\" as defined above is usually written as f(x) = O(g(x)). Some consider this to be an abuse of notation, since[详细]
2023-03-28 15:34 分类:问答Difference between BST , Hashing , Tries and map
I read some blog and tutorial on Tries , hashing, Map(stl) and BST. I am very confused in which one is better to use and where. I know that to make such difference between them开发者_如何学Go are nons[详细]
2023-03-28 14:46 分类:问答