Consider the following algorithm:
for ( i = 2 ; i <= n ; i++) {
for ( j = 0 ; j <= n) {
cout << i << j ;
j = j + floor(n/4) ;
}
}
(a) What is the output when n = 4
(b) What is the time complexity T(n). You may assume that n is divisible 4.
Consider the following algorithm: for ( i = 2 ; i <= n ; i++) { for ( j = 0 ; j <= n) { cout << i << j ; j = j + floor(n/4) ; } } (a) What is the output when n = 4 (b) What is the time complexity T(n). You may assume that n is divisible 4.
What is the most efficient way to store 1 million phone numbers memory-wise?
Can you list some use cases where classification machine learning algorithms can be used?
What was deep learning, & how does it contrast with other machine learning algorithms?
1. Consider the following algorithm: for ( i = 1 ; i <= 1 . 5 n ; i++) cout << i ; for ( i = n ; i >= 1 ; i - - ) cout << i ; (a) What is the output when n = 2, n = 4, and n = 6? (b) What is the time complexity T(n)? You may assume that the input n is divisible by 2.
Write the Shortest path algorithm for a graph.
What is the depth-first search algorithm?
What is Na?ve Bayes Algorithm?
Draw a flowchart to find the average of four number?
How does deep learning contrast with other machine learning algorithms?
Which search algorithm will use a limited amount of memory in online search?
list the types of linked list with aid of diagram?