- #1

- 116

- 2

- Thread starter jimmycricket
- Start date

- #1

- 116

- 2

- #2

Quantum Defect

Homework Helper

Gold Member

- 495

- 116

Loop from x = 1 to N-1

[ Loop from y= x+1 to N

pair = list[x], list [y] ]

- #3

- 116

- 2

i dont follow that. Please note I dont know programming i need a more wordy answer please

- #4

Quantum Defect

Homework Helper

Gold Member

- 495

- 116

list (1..N) => list = (a, b, c, d, e, f); N = number of members in the list; in this case, N = 6i dont follow that. Please note I dont know programming i need a more wordy answer please

The loops above, look like:

x=1, y = 2, 3, 4, 5, 6: pairs = (a,b), (a,c), (a,d), (a,e), (a,f)

x=2, y = 3, 4, 5, 6: pairs = (b, c), (b,d), (b,e), (b,f)

x=3, y = 4, 5, 6: pairs = (c,d), (c,e), (c,f)

x=4, y=5, 6,: pairs = (d,e), (d,f)

x=5, y = 6: pairs = (e,f)

- #5

- 116

- 2

((a,b),(c,d),(e,f)) and another would be ((a,c),(b,e),(d,f))

- Replies
- 5

- Views
- 674

- Replies
- 3

- Views
- 2K

- Replies
- 3

- Views
- 2K

- Replies
- 2

- Views
- 2K

- Last Post

- Replies
- 3

- Views
- 940

- Last Post

- Replies
- 7

- Views
- 3K

- Replies
- 13

- Views
- 2K

- Replies
- 13

- Views
- 995

- Last Post

- Replies
- 3

- Views
- 65K

- Replies
- 5

- Views
- 9K