Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged big

0 votes
598 views
1 answer
    for i in xrange(1,n+1): for j in xrange(1,i*i): if j%i==0: for k in xrange(0,j): print(" ... will be the time complexity of the above algorithm? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
419 views
1 answer
    So, clearly, log(n) is O(n). But, what about (log(n))^2? What about sqrt(n) or log(n)--what bounds what? There's ... =c*g(n) for c=1 and n0 > 0. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
437 views
1 answer
    I haven't seen anything out there, and I suspect the difficulty with defining "n" since for generally for ... a certain subset of programs? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
666 views
1 answer
    What's the correct big O notation for an algorithm that runs in triangular time? Here's an example: func(x): for ... but I'm not entirely sure. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
375 views
1 answer
    We have a list of intervals of the form [ai, bi]. For each interval, we want to count the number of other ... bi, so no intervals of length 0. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
560 views
1 answer
    def f2(L): sum = 0 i = 1 while i < len(L): sum = sum + L[i] i = i * 2 return sum Let n ... growth of n. Can someone please explain this to me? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
613 views
1 answer
    I really want to know the real definition. I have tried to read a book, but couldn't understand it. ... not replace with those formal keywords? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
304 views
1 answer
    I'm looking for the mathematical proof, not just the answer. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
410 views
1 answer
    I'm trying to understand this paper: Stable minimum space partitioning in linear time. It seems that a critical part of ... O(N) writes to a? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
592 views
1 answer
    Given the function below: int f(int n) { if (n <= 1) { return 1; } return f(n - 1) + f(n - 1) ... is why the space/memory complexity is O(N)? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
499 views
1 answer
    I'm confused on how to create a function T(n) to measure computing time for a nested infinite loop. Here ... . Any help is greatly appreciated. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
472 views
1 answer
    Can someone please explain to me in a simple way why constants don't matter when it comes to big O notation? ... it. Thanks so much everyone. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
472 views
1 answer
    I had a job interview today. And was asked about complexity of std:set_intersection. When I was answering I ... : am I really incorrect? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
418 views
1 answer
    With the reference of this answer, what is Theta (tight bound)? Omega is lower bound, quite understood, the ... no idea regarding the Theta. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
743 views
1 answer
    For example in the code below: public int commonTwo(String[] a, String[] b) { Set common = new HashSet<String>( ... )); return common.size(); } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
519 views
1 answer
    According to the Wikipedia article on linked lists, inserting in the middle of a linked list is considered O( ... for insert/delete options. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
672 views
1 answer
    Python What's the time complexity of using a = [1]*n vs. for i in range(n): a.append(1) Are both O(n) or does the first O(1)? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
347 views
1 answer
    Assume I have two algorithms: for (int i = 0; i < n; i++) { for (int j = 0; j < n; ... just the most complex element that bounds the algorithm. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
408 views
1 answer
    I have seen this term "O(1) access time" used to mean "quickly" but I don't understand what it means. The ... it? Big-O for Eight Year Olds? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
339 views
1 answer
    I had this question on an Algorithms test yesterday, and I can't figure out the answer. It is driving me ... being ones that are evenly spaced. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...