▲ 2 r/computersciencehub+1 crossposts

Feeling lost when I try to find time complexity of algorithms

Hello everyone, CS 1st year undergrad here. My algorithms professor is so bad I don't understand what he teach at all. he gave a time complexity assignment ( some problems are at the end of this post ) this week but I couldn't do it myself. I tried to read few algorithm books but I wasn't able to find a good book or other learning resource to learn analyzing these kind of algorithms. If you guys could recommend a book or some any other study material, It would be helpful. thank you !

1. FOR i FROM 0 TO n-1
       FOR j FROM 0 TO i
           PRINT i, j

2. FOR i FROM 0 TO n-1
       FOR j FROM 0 TO m-1
           FOR k FROM 0 TO p-1
               PRINT i, j, k



3. FOR i FROM 0 TO n-1
       FOR j FROM 0 TO i
           IF (i % 2 == 0)
               PRINT i, j
           ELSE
               FOR k FROM 0 TO j
                   PRINT i, j, k



4. i = 1
   WHILE i < n
       FOR j FROM 0 TO i
           PRINT i, j
       i = i * 2



5. FOR i FROM 1 TO n
       FOR j FROM 1 TO i * i
           IF (j % i == 0)
               FOR k FROM 0 TO j
                   PRINT i, j, k

6. FOR i FROM 0 TO n-1
       k = i
       WHILE k < n
           PRINT i, k
           k = k + i + 1
reddit.com
u/Sandina_ — 10 days ago

Dr. Sanjeewa Weerawarana to step down as the CEO of wso2

Does anyone know why is this happening ? The news says that wso2 is going to lean more towards AI-driven , agent-based stuff. Does that mean that Layoffs are coming and they are going use buzzword AI to cover it up ?

reddit.com
u/Sandina_ — 2 months ago

Fellow Srilankan IT people, I need your advice

Hello everyone, I'm posting this behalf of my friend.

>" I dream to be a game developer(2D, 3D, graphics, AR, VR, XR, Consoles every thing). Also I love to do a degree as a qualification. I know degree is not every thing too. I do have a decent Z-score. I cann't choose from bellow two programs. > >1)UCSC CS 2)Japura CS > >Reasons:- > >UCSC CS is feel the best possible degree but my main concern is 3 year general issue. I am little bit of afraid to it. > >The reason to consider Japura CS is it's give every ones a hons. But it's newly started and I am bit of worried about it. > >Third reason is, Imagine I am in UCSC CS. This mean to survive GPA I have to focus more on academic. As result what if I loose my portfolio targets. In Japura CS you don't need to worry and much more freedom to balance things. > >But in the other hand if I go to Japura I loose the chance to get in to the best campus. Also I cann't resist the prestige of UCSC. > >My problem is what will matter more to my target as a game dev. University prestige or degree type being general or hons? "

reddit.com
u/Sandina_ — 2 months ago