1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
VMariaS [17]
3 years ago
6

Let t[1..n] be a sorted array of distinct integers, some of which may be negative. give an algorithm that can find an index i su

ch that 1 i n and t[i] = i
Mathematics
1 answer:
lisabon 2012 [21]3 years ago
8 0
Assuming we need to find i such that 
1 ≤ i ≤ n  and t[i]=i.

If we need to find only the first occurrence, we can do:

for i:1 to n {
    if t[i]=i then return(i)
}

If exhaustive search is required, then put the results (values of i) in an array or a linked list, return the number of values found, and the array (or linked list).


You might be interested in
Pls just ans the match the following bless yal stay safe
Vilka [71]

Answer:

a-ii

b-iii

c-v

d-i

e-vi

please mark as brainliest

4 0
3 years ago
Identify the variable expression that is not a polynomial.
Blababa [14]
I think the answer is A.33 not a polunomial
6 0
3 years ago
Read 2 more answers
How would you translate this situation below into an algebraic expression?
Natasha2012 [34]
Dime value: $0.10
Nickel value: $0.05

For this word problem, you are asked to create an algebraic expression (an equation) for the unknown variables. 

Now, we know that a dime is worth $0.10 or 10 cents and a nickel is worth $0.05 or 5 cents. So, all you would have to do is create an equation that takes those values into account. 
5n + 10d

Your algebraic expression would be B. 5n + 10d

I hope this helps!
5 0
3 years ago
Which of the following functions is graphed below?
mrs_skeptik [129]

Step-by-step explanation:

For y = x^3 - 4 when x = 0, y = -4.

For y = x^2 + 3 when x = 0, y = 3.

Looking at the graph, the y-intercept of the function is below 0. Hence the bottom part is from x^3 - 4 and the top is from x^2 + 3.

The bottom part has a dark circle, which means when x = 1 it belongs to x^3 - 4.

Hence the answer is D.

3 0
3 years ago
B-c,when b=8 and c=7
elixir [45]
If I understand your question correctly then it's simple all you have to do is use the numbers in the place of the b and c so the question would be what is 8-7 which equals 1 
8 0
3 years ago
Other questions:
  • jason has 90$ to spend.He wants to purchase a bag for $30,one eraser for$10 ,and three pencils.Each of the pencils cost the same
    12·2 answers
  • Price of artwork is in a large box. Below the box are smaller boxes that contain money to artist and subtracted commission.
    13·1 answer
  • The area of a rectangular rug is given by the trinomial r squared minus 4 r minus 77r2−4r−77. What are the possible dimensions o
    10·2 answers
  • What is 7/3x+1/3x=1+5/3x?​
    14·1 answer
  • Mrs. Tyner drove about 150 km east from Pearland, to Houston, Texas. She
    15·1 answer
  • a baseball team won two out of their last four games. in how many different orders could they have two wins and two losses in fo
    10·1 answer
  • If a=8 and b=4, evaluate the following expression:2a−3b​
    8·2 answers
  • If ab and cd are congruent what is the measure of
    14·1 answer
  • 110% of 72<br><br> Show work pls.
    5·1 answer
  • Please help ME I BEG YOU​
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!