what to do with fraction as index number?

Let’s learn what to do with fraction as index number. The most accurate or helpful solution is served by Mathematics.

There are ten answers to this question.

Best solution

fraction as index number?

given these inputs x = 4, S = [1 2 3 4 5 6 7 8 9 10], and n = 10 search (x,S,n) { i = 1 j = n while i < j { m = [(i+j)/2] if x > Sm then i=n+1 else j = m end if x = Si then location = i else location = 0 This algorithm is from my discrete math hw. I'm confused as to what Sm would equal on the first iteration because m would be $\frac{11}{2}$. If i use a fraction as the index do I round down? Is there a general rule for this? Am I making any sense? Help pls

Answer:

Yes, you should round down (or in other words, take only the integer part). $$[11/2]=[5.5]=5$$ This...

Read more

bangsauce at Mathematics Mark as irrelevant Undo

Other solutions

Should Quora ever consider using H-index for reputation?

The H-index is a metric that came out of academia to measure the reputation of academics. You have a H-index of n if you have n papers with at least n citations. http://en.wikipedia.org/wiki/H-i.... In the context of Quora, it would be that you gave...

Answer:

I do not think so. The h-index is nice for a bunch of reasons--it's fairly easy to understand (no statistical...

Read more

Dev Nag at Quora Mark as irrelevant Undo

Answer:

the first one is 55 and 1/11 because 11 goes in to 56 55 times 1 is left over making 55 and 1/11

Read more

☆ Cassie ☆ at Yahoo! Answers Mark as irrelevant Undo

Which is the proper way to type the number 6? Which index finger do you use?

i was wondering im learning how to type at this website called http://www.typingweb.com/tutor/lesson/index/id/330/ if you do the lesson Intermediate Numbers you could see that the bottom layout shows you to press the number 6 with your LEFT INDEX finger...

Answer:

On my keyboard the 6 is just slightly closer to the left finger. I do use the left finger although I...

Read more

g at Yahoo! Answers Mark as irrelevant Undo

What is the index number for the 1,000,000 digits of pi website?

This is getting really annoying. I have tried every logical number on the index extension on that stupid site that that guy started. I think tat it is called http://3.1415926535897932384626433832795… Can anyone give me the index number to fill...

Answer:

There are many sites with Pi to one million digits, here is one: http://scienceresort.com/20101129_pi...

Read more

Jhon S at Yahoo! Answers Mark as irrelevant Undo

What does the injection fraction number mean?

My sister had a heart attack last Easter. She has since been told that she has Congestive Heart Failure. She has to keep going back to the hospital from time to time to have fluid removed. Her doctor told her that her injection fraction number was 2...

Answer:

Hambone, The words are actually Ejection fraction, not INjection fraction. Ejection fraction is usually...

Read more

WV Prepper at Yahoo! Answers Mark as irrelevant Undo

Answer:

What if I don't wanna?

Read more

amos francis at Answerbag.com Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.