Edit the shape to be merged
<h2>This function will land up in infinite function call</h2>
Explanation:
first time when the function gets invoked,
f(6,8), so k=6 & n=8, inside the function it checks k==n, ie. 6==8, returns false, then one more if is available, so 6>8 is check for , once again it is false and else loop is executed, the function is called recursively using f(k-n,n), that is f(6-8,8), it means f(-2,8) is passed.
Second time,
if(-2==8) is false, so if(-2>8) is again false and function f(-10, 8) is called
if(-10==8) is false, so if(-10>8) is again false and function f(-18,8) is called
if(-18==8) is false, so if(-18>8) is again false and function f(-26,8) is called
So this goes recursively and ends in an infinite function call.
The maximum speedup of this cpu over a non-pipelined implementation is 14.
What do you mean by cpu?
A central processing unit (CPU), often known as a central processor, main processor, or simply processor, is the electrical circuitry that processes computer programme instructions. The CPU executes basic arithmetic, logic, controlling, and input/output (I/O) operations provided by programme instructions. This is in contrast to external components like main memory and I/O circuits, as well as specialised processors like graphics processing units (GPUs).
In general, however, a 14-stage pipeline can provide a significant speedup over a non-pipelined design, potentially up to several orders of magnitude.
To learn more about cpu
brainly.com/question/4558917
#SPJ4
A web address would most likely contain biased information when it has a domain of .com. The domain extension is considered to be the most popular because it has a wide variety of functions in media or industry. The other domains in the choices are controlled by an institution or the government.
Answer:
The algorithm to this question as follows:
Algorithm:
finding_small_element(element,Key xa) //defining method that accepts parameter
{
if (element.value>= xa) //check value
{
//skiping node
return;
}
print(element.value);//print value
if (element.left != NULL) //check left node value
{
finding_small_element(element.left,xa); //using method
}
if (element.right != NULL) //check right node value
{
finding_small_element(element.right,xa); //using method
}
}
Explanation:
In the above pre-order traversing algorithm a method "finding_small_element" is defined, that accepts two parameter, that is "element and ax', in which "element" is node value and ax is its "key".
- Inside this if block is used that check element variable value is greater then equal to 0.
- In the next step, two if block is defined, that check element left and the right value is not equal to null, if both conditions are true, it will check its right and left value. In this algorithm, there is no extra need for traversing items.