Page 1 of 1

Find the Big- notations for the following pseudocode snippets with regard to n. Note, you must show us how to find the u

Posted: Mon Jul 11, 2022 9:54 am
by answerhappygod
Find The Big Notations For The Following Pseudocode Snippets With Regard To N Note You Must Show Us How To Find The U 1
Find The Big Notations For The Following Pseudocode Snippets With Regard To N Note You Must Show Us How To Find The U 1 (28.14 KiB) Viewed 33 times
Find the Big- notations for the following pseudocode snippets with regard to n. Note, you must show us how to find the upper bound and the lower bound or you will get zero points. A. for (k = 0; k < n; k++) { for (j = 6; j<n; j++) { // code block that takes a constant runtime } B. } k = 1; do { j = 1; do { // code block that takes a constant runtime j = j * 2; } until (j >= n); // if j<n, continue the loop k + +; } until (k >= n) ;