Search:

Type: Posts; User: PeskyToaster

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    2,220

    Re: Big O - Algorithm Analysis

    I have another problem. First here's the code snippet. It's just general code for analysis



    for (j=0; j<2n; j++) {
    i = 1;
    Generic Statement;
    while (j<n) {
    Generic...
  2. Replies
    4
    Views
    2,220

    Big O - Algorithm Analysis

    How do I analyze a for loop that looks like

    for (j = 0; j < 2*n; j += 2)

    I know that if it was just j++ it would loop 2n times but the += is throwing me off. This loop is nesting in a normal...
Results 1 to 2 of 2