Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

CAT and MBA Entrance Preparation  Module 3 – Data Interpretation and Logical Reasoning (DILR)

Arrangement and scheduling sets

Seat people in rows and round tables by placing the tightest clue first, turn precedence rules into every valid schedule, and count what each clue leaves.

  • Intermediate
  • 25 minutes
  • Examples run with Python 3.14.8 and Pyodide 314.0.7
  • By MySmartCoPilot
Free core, Pro depth: 10 of 25 minutes free
Free: Round tables count by order: seat the tightest clue first · A schedule is an order that every rule allows · Fixed days cut fifteen schedules to one · Practise: eleven questions on seats and schedules. With a pass: 2 in-depth parts and 3 interview answers, about 15 minutes.

What you will learn

  • Solve row and round-table arrangements by placing the tightest clue first
  • Order tasks under precedence rules and find every valid schedule
  • Count the arrangements or schedules a set still allows after each clue

Before you start

Six friends can sit in a row in 720 ways but round a table in only 120, and four clues leave one. Seven tasks under eight “before” rules can be done in 15 of 5,040 possible orders, and three more clues leave one.

Arrangement sets ask who sits where; scheduling sets ask what happens when. Both are questions of order, and one method serves both: apply the clue that leaves the fewest cases first, count what is left after each clue, and answer when every case left agrees. Two programs try every case, so each count can be checked.

Round tables count by order: seat the tightest clue first

Six people fill six chairs in a row in 6! = 720 ways, the number of orders of six things. Around a table, turning everyone one seat round gives the same seating, so seat one person first and arrange the other five: 5! = 120. The person seated first turns their links into fixed seats, so seat the one the tightest clue is about.

Arjun, Bina, Chetan, Dia, Eshan and Farida sit round a table, facing the centre. The clues:

  1. Chetan sits between Dia and Eshan.
  2. Bina sits immediately on Arjun’s left.
  3. Eshan does not sit next to Arjun.
  4. Farida does not sit next to Eshan.

Clue 1 makes a block of three that keeps 12 of the 120 seatings, a tenth, so it goes first, with Chetan seated first. The link comes next and the two rule-outs last. Step through the arrangement clue by clue:

Interactive · step by step Six friends at a round table, four clues Step through the clues, tightest first. Each seat shows who can still sit there; each step says how many seatings are left.
Six friends at a round table, four clues, step 6 of 6. Showing Clue 1, Clue 2, Clue 3, Clue 4, Seat 1 (Chetan), Seat 2 (Dia), Seat 3 (Farida), Seat 4 (Arjun), Seat 5 (Bina), Seat 6 (Eshan). In focus: Seat 1, Seat 4, Seat 2, Seat 3.Clue 1Chetan between Dia, EshanClue 2Bina on Arjun's leftClue 3Eshan not next to ArjunClue 4Farida not next to EshanSeat 1ChetanSeat 2DiaSeat 3FaridaSeat 4ArjunSeat 5BinaSeat 6Eshanopposite Chetan

The drawing shows the whole scene; its 6 steps are listed below.

Every step as text
  1. Seat one person first. Around a table only the order matters, so seat Chetan first, in seat 1, and number the other seats clockwise as seen from above. The other five fill seats 2 to 6 in 5! = 120 ways, against 720 in a row.
  2. The tightest clue. Clue 1 keeps the fewest seatings, so it goes first. Dia and Eshan take seats 2 and 6, on Chetan's two sides, in 2 orders, and Arjun, Bina and Farida share seats 3 to 5 in 6. That leaves 2 × 6 = 12 seatings.
  3. A link inside the gap. Facing the centre, your left is the next seat clockwise. Bina on Arjun's left needs two neighbouring seats among 3 to 5, so Arjun and Bina take seats 3 and 4, or 4 and 5, and Farida the seat left over. 4 seatings are left.
  4. A rule-out. Eshan does not sit next to Arjun. If Eshan is in seat 2, Arjun cannot be in seat 3, so that case keeps only Farida, Arjun and Bina in seats 3 to 5. 3 seatings are left.
  5. The last rule-out. Farida does not sit next to Eshan. Two of the three seatings put her beside him, and one is left. Clockwise from seat 1 it reads Chetan, Dia, Farida, Arjun, Bina, Eshan.
  6. Answer from the circle. Arjun, three seats round, sits opposite Chetan. Dia's left is the next seat clockwise, so Farida sits immediately on Dia's left.

The clues leave 12, 4, 3 and 1 seatings. The program tries all 120 and prints the same counts; press Edit, change a clue, and run it again:

Six friends round a table, every seating tried Python · round-table/round_table.py
"""Six friends at a round table, every seating tried, clue by clue.

Around a table only the order matters, so Chetan is seated first, as the
reference, and the other five fill seats 1 to 5, numbered clockwise when seen
from above: 5! = 120 seatings. Everyone faces the centre, so a person's left-hand
neighbour is the next seat clockwise. The program keeps the seatings that fit
each clue, prints how many are left, and answers two questions at the end.
"""
from itertools import permutations

FRIENDS = ["Arjun", "Bina", "Chetan", "Dia", "Eshan", "Farida"]


def seat(s, name):
    return s.index(name)


def left_of(s, name):
    return s[(seat(s, name) + 1) % 6]


def right_of(s, name):
    return s[(seat(s, name) - 1) % 6]


def next_to(s, a, b):
    return b in (left_of(s, a), right_of(s, a))


CLUES = [
    ("1. Chetan sits between Dia and Eshan",
     lambda s: next_to(s, "Chetan", "Dia") and next_to(s, "Chetan", "Eshan")),
    ("2. Bina sits immediately on Arjun's left", lambda s: left_of(s, "Arjun") == "Bina"),
    ("3. Eshan does not sit next to Arjun", lambda s: not next_to(s, "Eshan", "Arjun")),
    ("4. Farida does not sit next to Eshan", lambda s: not next_to(s, "Farida", "Eshan")),
]

print("In a row:", len(list(permutations(FRIENDS))), "seatings")
seatings = [("Chetan",) + rest for rest in permutations([f for f in FRIENDS if f != "Chetan"])]
print("Around the table:", len(seatings), "seatings")
for text, fits in CLUES:
    seatings = [s for s in seatings if fits(s)]
    print(f"{text}: {len(seatings)} left")

s = seatings[0]
print("Clockwise from Chetan:", ", ".join(s))
print("Opposite Chetan:", s[(seat(s, "Chetan") + 3) % 6])
print("Immediately on Dia's left:", left_of(s, "Dia"))

Output

In a row: 720 seatings
Around the table: 120 seatings
1. Chetan sits between Dia and Eshan: 12 left
2. Bina sits immediately on Arjun's left: 4 left
3. Eshan does not sit next to Arjun: 3 left
4. Farida does not sit next to Eshan: 1 left
Clockwise from Chetan: Chetan, Dia, Farida, Arjun, Bina, Eshan
Opposite Chetan: Arjun
Immediately on Dia's left: Farida

Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 round_table.py

Reading left and right off a drawing seen from above

A drawing of a table is a view from above, but the people in it face the centre. Your left, facing the centre, is the next seat clockwise in the drawing. The page’s left matches a person’s left only at the bottom of the drawing; at the top it is their right.

Checkpoint

Check: Round tables and the tightest clue

  1. Question 1 of 2 Seven people sit round a table, and only the order round the table matters. How many seatings are there?

    Type a number.

    A hint

    Seat one person first, then arrange the rest.

    Show the answer: Question 1 of 2

    Answer: 720 seatings

    Seat one person first; the other six fill the six other seats in 6! = 720 orders. In a row the same seven would have 7! = 5,040, seven times as many, because each seating could be turned seven ways.

  2. Question 2 of 2 Six people, P, Q, R, S, T and U, sit round a table. The clues: (a) Q sits opposite P; (b) R does not sit next to P; (c) S sits between T and U; (d) R does not sit opposite S. Which clue do you apply first?

    Choose one answer.

    Show the answer: Question 2 of 2

    Answer: (c), the block of three

    Rank the clues by the share each keeps: the block keeps 1/10, "opposite" 1/5, "not next to" 3/5 and "not opposite" 4/5. Apply the block first, seating its middle person, S, first.

A schedule is an order that every rule allows

A college fest needs seven jobs done, one a day for seven days: book the hall (H), confirm the speakers (S), print the posters (P), open ticket sales (T), run the sound check (M), hold the rehearsal (R) and hold the event (E). Eight rules say which job comes first: H and S before P, P before T, H before M, S and M before R, and T and R before E.

An order that keeps every such rule is a topological order: An order of jobs in which every job comes after all the jobs that a rule says must come before it. A set of such rules usually allows several orders., and scheduling sets are built on them. The rules leave room: H and S both have nothing before them, so either can open the week. To find one valid order, repeatedly take a job that no remaining rule holds back and cross out the rules it releases. The figure takes the first such job in alphabetical order:

Interactive · step through it Seven fest jobs in an order every rule allows Repeatedly take a node with nothing pointing into it.
Graph of 7 nodes and 8 edges. ready (in-degree 0): H, S.Ein 2Hin 0Min 1Pin 2Rin 2Sin 0Tin 1ready (in-degree 0):HSorder:empty
  • being compared or looked at
  • being moved or written
  • in its final place
  • the key, pivot or target
  • visited or ruled out

Pseudo-code

  1. indeg(v) ← the number of edges into v
  2. queue ← every node with indeg 0
  3. while the queue is not empty:
  4. u ← dequeue; append u to the order
  5. for each edge u → v: indeg(v) ← indeg(v) − 1; if it is 0: enqueue v
  6. if the order misses a node: the graph has a cycle

Order the tasks so that every arrow points forwards. "in k" is a node's in-degree: how many arrows still point into it. Nodes with nothing left pointing in are ready: H and S.

When it finishes: Order: H M S P R T E.

Placed 0
Edges removed 0

The figure ends on H, M, S, P, R, T, E, one valid schedule of several. The program tries all 5,040 orders, keeps 15 and prints the days each job can take, such as day 4, 5 or 6 for the rehearsal.

Seven fest jobs, every order tried Python · schedules/schedules.py
"""Seven fest tasks over seven days, every order tried.

H books the hall, S confirms the speakers, P prints the posters, T opens ticket
sales, M runs the sound check, R holds the rehearsal and E is the event, one
task a day. A rule "H before P" means the hall is booked on an earlier day than
the posters are printed. The program keeps the orders that every rule allows,
prints the days each task can take, then applies three more clues one at a time.
"""
from itertools import permutations

RULES = [("H", "P"), ("S", "P"), ("P", "T"), ("H", "M"), ("S", "R"), ("M", "R"), ("T", "E"), ("R", "E")]


def day(order, task):
    return order.index(task) + 1


orders = [o for o in permutations("EHMPRST") if all(day(o, a) < day(o, b) for a, b in RULES)]
print(f"The eight rules allow {len(orders)} of the {len(list(permutations('EHMPRST')))} orders")
for task in "HSMPRTE":
    print(f"   {task} can be on day", ", ".join(str(d) for d in sorted({day(o, task) for o in orders})))

CLUES = [
    ("1. The sound check is on day 3", lambda o: day(o, "M") == 3),
    ("2. The speakers are confirmed before the hall is booked", lambda o: day(o, "S") < day(o, "H")),
    ("3. The posters and the rehearsal are not on neighbouring days",
     lambda o: abs(day(o, "P") - day(o, "R")) != 1),
]
for text, fits in CLUES:
    orders = [o for o in orders if fits(o)]
    print(f"{text}: {len(orders)} left")
    if text.startswith("1."):
        print("   on day 1 after clue 1:", " or ".join(sorted({o[0] for o in orders})))
print("The schedule, day 1 to day 7:", " ".join(orders[0]))
print("Day 5:", orders[0][4])

Output

The eight rules allow 15 of the 5040 orders
   H can be on day 1, 2
   S can be on day 1, 2, 3
   M can be on day 2, 3, 4, 5
   P can be on day 3, 4, 5
   R can be on day 4, 5, 6
   T can be on day 4, 5, 6
   E can be on day 7
1. The sound check is on day 3: 6 left
   on day 1 after clue 1: H or S
2. The speakers are confirmed before the hall is booked: 3 left
3. The posters and the rehearsal are not on neighbouring days: 1 left
The schedule, day 1 to day 7: S H M P T R E
Day 5: T

Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 schedules.py

Checkpoint

Check: Schedules as orders every rule allows

  1. Question 1 of 2 Under the fest's eight rules, which jobs can be done on day 1?

    Choose one answer.

    Show the answer: Question 1 of 2

    Answer: H or S

    A job can go first only if no rule puts another job before it. H and S are the only such jobs, and the program shows H on day 1 or 2 and S on day 1, 2 or 3.

  2. Question 2 of 2 What is the earliest day on which the rehearsal can be held?

    Type a number.

    A hint

    List every job that has to come before the rehearsal, directly or through another job.

    Show the answer: Question 2 of 2

    Answer: 4 day

    The rehearsal needs S and M, and M needs H, so H, S and M all come first: three jobs on days 1 to 3, and the rehearsal on day 4 at the earliest.

Fixed days cut fifteen schedules to one

Scheduling sets add clues about days to the rules about order. In this set: (1) the sound check is on day 3; (2) the speakers are confirmed before the hall is booked; (3) the posters and the rehearsal are not on neighbouring days. A fixed day alone keeps one order in seven, 720 of 5,040, against the rules’ 15, so the order is rules, fixed day, link, rule-out:

Step Schedules left
The eight rules 15
Clue 1: sound check on day 3 6
Clue 2: speakers before hall 3
Clue 3: posters and rehearsal apart 1

One schedule is left, S, H, M, P, T, R, E, and five questions read off the two sets:

Question Answer
How many schedules do the eight rules allow? 15
On which days can the rehearsal fall? 4, 5 or 6
After clue 1, which jobs can be on day 1? H or S
Which job is on day 5? Ticket sales (T)
Who sits opposite Chetan at the round table? Arjun

Key idea

Apply the clue that leaves the fewest cases first, in a row, at a table or in a week, and keep the count of what is left after each clue: a question has its answer when every case left agrees.

Checkpoint

Check: Fixed days and the count left

  1. Question 1 of 2 With the eight rules and clue 1 only (the sound check on day 3), how many schedules are left?

    Type a number.

    A hint

    The sound check needs the hall first, and day 3 leaves two days before it.

    Show the answer: Question 1 of 2

    Answer: 6 schedules

    The program counts 6 of the 15. With M on day 3, H must be on day 1 or 2 and S takes the other day, and P, R and T fill days 4 to 6 in the orders the rules allow.

  2. Question 2 of 2 Why does clue 3, "the posters and the rehearsal are not on neighbouring days", come last?

    Choose one answer.

    Show the answer: Question 2 of 2

    Answer: On its own it keeps 9 of the 15 schedules, more than either other clue

    Each clue is ranked by the share of cases it keeps. The fixed day and the order clue each keep 6 of 15, the rule-out 9 of 15, so the rule-out is applied last, when it turns 3 schedules into 1.

Practise: eleven questions on seats and schedules

NMAT names Analytical Puzzles among its Logical Reasoning topics, SNAP 2026 has a 20-question Analytical & Logical Reasoning section, and CAT 2026 gives its DILR section 40 minutes.

Not affiliated

MySmartCoPilot is not affiliated with the IIMs, GMAC or Symbiosis International University, and every set here is this track’s own.

Eleven untimed questions follow, starting from your weakest idea; a question you miss comes up again later.

Practice that adapts to you

Practise this lesson

11 questions about 5 ideas of this lesson. Each answer is explained at once, and what you get right is kept in this browser.

  1. Question 1 of 11 Why do six people have 720 seatings in a row but only 120 round a table?

    Choose one answer.

    Show the answer: Question 1 of 11

    Answer: Turning everyone one seat round gives the same seating, so six turns count as one

    At a table only the order matters, and each order can be turned six ways without changing who sits next to whom. Seat one person first and arrange the other five: 5! = 120.

  2. Question 2 of 11 Five people sit round a table. How many seatings are there?

    Type a number.

    Show the answer: Question 2 of 11

    Answer: 24 seatings

    Seat one person first and arrange the other four: 4! = 24, against 5! = 120 in a row.

  3. Question 3 of 11 In a drawing seen from above, everyone faces the centre. Where is a person's left-hand neighbour?

    Choose one answer.

    Show the answer: Question 3 of 11

    Answer: In the next seat clockwise

    Picture yourself in a seat, looking at the centre: your left is the next seat clockwise in the drawing. That is the convention of every set in this lesson.

  4. Question 4 of 11 At the lesson's table, after clue 1 only, in how many seatings does Arjun sit next to Chetan?

    Type a number.

    A hint

    Who are Chetan's two neighbours after clue 1?

    Show the answer: Question 4 of 11

    Answer: 0 seatings

    Clue 1 seats Dia and Eshan on Chetan's two sides, so both of his neighbours are taken in all 12 seatings, and Arjun is never beside him.

  5. Question 5 of 11 What makes an order of jobs a topological order?

    Choose one answer.

    Show the answer: Question 5 of 11

    Answer: Every job comes after all the jobs a rule says must come before it

    A topological order keeps every rule of the form "X before Y". There are usually several; the lesson's rules allow 15 of the 5,040 orders.

  6. Question 6 of 11 Which of these is a valid fest schedule, day 1 to day 7?

    Choose one answer.

    Show the answer: Question 6 of 11

    Answer: S, H, M, P, R, T, E

    Check each rule against the days. Only S, H, M, P, R, T, E keeps all eight; each of the others breaks one rule.

  7. Question 7 of 11 Across the 15 valid schedules, on how many different days can the sound check fall?

    Type a number.

    Show the answer: Question 7 of 11

    Answer: 4 days

    The sound check needs the hall first, so it is never on day 1, and the rehearsal and the event must follow it, so it is never on day 6 or 7. The program shows days 2, 3, 4 and 5.

  8. Question 8 of 11 Add a ninth rule: the rehearsal comes before the posters. Which job must then be on day 4?

    Choose one answer.

    Show the answer: Question 8 of 11

    Answer: The rehearsal

    The rehearsal now waits for H, S and M and must itself come before P, T and E. Three jobs before it and three after it put it on day 4 in every schedule, with P on day 5 and T on day 6.

  9. Question 9 of 11 In a scheduling set, which clues do you apply first?

    Choose one answer.

    Show the answer: Question 9 of 11

    Answer: The precedence rules, which cut 5,040 orders to 15

    Rank clues by the cases they keep. The eight rules keep 15 of 5,040, the sound check on day 3 keeps 720, so the rules come first and the fixed day second.

  10. Question 10 of 11 With the eight rules and clue 2 only (the speakers before the hall), how many schedules are left?

    Type a number.

    Show the answer: Question 10 of 11

    Answer: 6 schedules

    The program finds 6 of the 15. Clue 2 rules out the 9 schedules that book the hall before the speakers are confirmed.

  11. Question 11 of 11 With the eight rules and clue 1 only, which question already has one answer?

    Choose one answer.

    Show the answer: Question 11 of 11

    Answer: Which two jobs fill days 1 and 2?

    With the sound check on day 3 and the hall before it, the hall takes day 1 or 2. Every other job, the posters, the rehearsal, the tickets and the event, comes after the speakers, so the speakers take the other early day. H and S fill days 1 and 2 in every case.

Permutation & Combination Calculator Check a count: 6 people in a row give 6! = 720 orders, and round a table 5! = 120.

Four arrangement and scheduling sets, fully worked Pro: opens with a Pro, Premium or Ultimate pass

Four sets of rising difficulty: a row of seven with a block and a gap, a round table of eight, a schedule whose jobs take several days, and a row with two attributes. A program counts the cases left after every clue, so each step of the working can be checked.

In this part:

  • Blocks and gaps in a row of seven, case by case
  • A round table of eight, anchored by one person
  • Jobs that take several days: the longest chain decides
  • Two attributes in one grid: interns, chairs and departments
  • What each set adds, in numbers

1 runnable example (Python) · about 5 minutes

Opening this part with your pass…

This part opens with any MySmartCoPilot pass.

  • Pro pass · 1 week₹79$2.99
  • 30 days₹179$5.99
  • 1 year₹1,699$45

One payment; a pass never renews. The price shown is the total you pay: no fees or charges are added at checkout.

It also opens every other in-depth part in Learn and every Pro tool. Sales are final, except where the law gives you a right to withdraw, for example in the EU and the UK (refund policy).

Counting what a set allows, and the clue order it suggests Pro: opens with a Pro, Premium or Ultimate pass

Counting the cases a clue keeps, without listing them, tells you which clue to apply first and when a set is close to closing. Nine counts, each worked out by a rule and checked against a full count, are then put to work on the lesson’s sets.

In this part:

  • Counting rules, each checked against a full count
  • Clue order, measured on the round table
  • One grid or pair tables

1 runnable example (Python) · about 4 minutes

Opening this part with your pass…

This part opens with any MySmartCoPilot pass.

  • Pro pass · 1 week₹79$2.99
  • 30 days₹179$5.99
  • 1 year₹1,699$45

One payment; a pass never renews. The price shown is the total you pay: no fees or charges are added at checkout.

It also opens every other in-depth part in Learn and every Pro tool. Sales are final, except where the law gives you a right to withdraw, for example in the EU and the UK (refund policy).

Interview questions

  1. Fresher to mid

    A round-table set of six people gives four clues: one "opposite", one "between", one "immediately left of" and one "not next to". In what order do you apply them, and how do you justify the order without listing seatings?

    Model answer, Pro. Model answers open with any pass; prices are in the notice on this page. First step and follow-ups

  2. Fresher to mid

    A scheduling set has seven jobs, eight precedence rules and three day clues, and a candidate starts with the clue "the sound check is on day 3". Why is that slower than starting with the rules, and what does a better first step look like?

    Model answer, Pro. First step and follow-ups

  3. Fresher to mid

    A candidate reads "left" off the page of a round-table drawing, which is right for some seats and wrong for others, and the set then seems to have no seating at all. What went wrong, and how do you set up the drawing so it cannot happen?

    Model answer, Pro. First step and follow-ups

Flashcards · 5 cards

Recall it, then check

Say the answer to yourself before you look: recalling it is what makes it stick.

  1. How many ways can six people sit in a row, and round a table?

    In a row, 6! = 720. Round a table, turning everyone one seat changes nothing, so seat one person and arrange the other five: 5! = 120.

  2. Whom do you seat first at a round table?

    The person the tightest clue is about, so that their links become fixed seats. A block of three kept 12 of the 120 seatings, so it went first, and four clues left 12, 4, 3 and 1.

  3. How do you read left and right at a round table drawn from above?

    Everyone faces the middle, so a person's left hand points to the seat after theirs going clockwise on the drawing; only for people drawn at the bottom does the page's left match theirs.

  4. What is a valid schedule in a scheduling set?

    An order that keeps every "before" rule, a topological order. To find one, keep taking a job no remaining rule holds back. Seven fest jobs under eight rules allowed 15 of 5,040 orders.

  5. How did day clues cut the fest's 15 schedules?

    A fixed day (sound check on day 3) left 6, a link (speakers before hall) 3, and a rule-out (posters and rehearsal apart) 1: S, H, M, P, T, R, E.

Key takeaways

  • Six people sit in a row in 720 ways and round a table in 120: turning a table changes nothing.
  • Apply the tightest clue first: the block of three kept 12 of 120 seatings, and four clues left one.
  • A schedule is an order that keeps every rule: eight rules allowed 15 of 5,040 orders.
  • Day clues then cut the schedules, 15 to 6 to 3 to 1, and every question reads off the last one.

Terms in this lesson

topological order
An order of jobs in which every job comes after all the jobs that a rule says must come before it. A set of such rules usually allows several orders.

References

Related tools

Report a problem with this lesson

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.