The algorithm was considered flawed
1 year ago
10.3K
But what if there are 3 people in the room?How does this algorithm fair?Let's see.In line 1, we initialize n to zero.Suppose next that there are zero people in the room.And so, by this algorithm's end,n is still 2, which isn't correct.Indeed this algorithm is said to be buggy because it has a mistake.Let's redress with some new pseudocode.Let n equal zero.For each pair of people in room,set n = n + 2.If 1 person remains unpaired,set n = n + 1.
Loading comments...
-
7:49
tomerbd
1 year agoPCA Algorithm
1 -
8:59
InquisitiveKids
1 year agoGrade 1 - Partial Sums Algorithm
6 -
29:33
ericntunctu
2 years agoQuantum algorithm: step by step Simon's algorithm
6 -
LIVE
SNEAKO
1 hour agoLS LATE NIGHT - SECRET GUEST, DRAMA, AUTISM
6,039 watching -
LIVE
Fresh and Fit
3 hours agoFresh&Fit After Hours w/ Girls
13,352 watching -
16:39
Stephen Gardner
4 hours ago🔴Breaking: Trump GETS HUGE boost as Jesse Waters Humiliates Biden!
14.6K41 -
39:42
Candace Owens
8 hours agoChrissy Teigen Needs An Exorcism | Candace Ep 11
26.6K64 -
2:32:24
Fresh and Fit
9 hours agoHow To Start A Business With NO MONEY!
45K8 -
1:42:10
Glenn Greenwald
8 hours agoU.S./Russia Tensions Escalate Over Ukraine to Most Dangerous Level Yet; CNN’s Kasie Hunt has Humiliating Meltdown; PLUS: Journalists Lee Fang and Jack Poulson on Israeli Influence Campaign on U.S. Campuses | SYSTEM UPDATE #288
77.9K104 -
54:28
UnchartedX
10 hours agoHow Old Are These MEGALITHS? A Study of Erosion in Ancient Egyptian Architecture - UnchartedX
32.4K19