Reputation
Next privilege 125 Rep.
Vote down
Badges
4
Newest
 Editor
Impact
~249 people reached

  • 0 posts edited
  • 0 helpful flags
  • 4 votes cast
Mar
8
accepted Probability that at least one person has a disease
Mar
8
comment Probability that at least one person has a disease
Thanks a lot, very helpful answer!
Mar
8
revised Probability that at least one person has a disease
added 66 characters in body
Mar
8
comment Probability that at least one person has a disease
Does this assume that one person cannot have more than one disease? My question is assuming that a person can only have one of the five diseases or not have a disease at all. Thank you for your help!
Mar
8
asked Probability that at least one person has a disease
Jan
16
awarded  Editor
Jan
15
revised Insertion Sort algorithm array ordering and comparisons
deleted 85 characters in body
Jan
15
comment Insertion Sort algorithm array ordering and comparisons
Sorry about that, I didn't notice your last edit! But the (2,3,1) case would also take the same number of comparisons as the (3,2,1) case in order to sort the list in increasing order - isn't that so?
Jan
15
comment Insertion Sort algorithm array ordering and comparisons
Oh okay, I understand. But my question is in the case where you only have three numbers in the array that need to be sorted. 1, 2, and 3.
Jan
15
awarded  Supporter
Jan
15
comment Insertion Sort algorithm array ordering and comparisons
And would the same rule apply for any number of elements? For example, if you have 5, 4, 3, 2, 1. Would 4, 5, 3, 2, 1 still be the only other order which would take an equivalent-to-worst-case number of comparisons? Thanks for your help.
Jan
15
accepted Insertion Sort algorithm array ordering and comparisons
Jan
15
comment Insertion Sort algorithm array ordering and comparisons
Interesting! But would it be possible to have other equivalent worst case situations (equivalent to the reverse order) with just single digit numbers like 1, 2, and 3?
Jan
15
asked Insertion Sort algorithm array ordering and comparisons
Nov
16
accepted Integer representation of a (fraction) modulo (integer)?
Nov
16
awarded  Scholar
Oct
26
comment Integer representation of a (fraction) modulo (integer)?
Ok, that makes sense. What if you do the following though?: (1/5) DIV 10 = (1/5)/10 = 1/50, which has a remainder of 1.. So could you say that (1/5) MOD 10 is equivalent to 1 MOD 50, and, therefore, the answer is 1?
Oct
26
comment Integer representation of a (fraction) modulo (integer)?
That looks very confusing to me, haha. So, for example, what would be the integer result of (1/5) MOD 10? Just doing the MOD operation would give (1/5), but is it possible to get an integer solution to the equation x = (1/5) MOD 10? Thanks a lot!
Oct
26
asked Integer representation of a (fraction) modulo (integer)?
Sep
24
awarded  Autobiographer