The NBA Schedule: The World’s Toughest Mathematical Puzzle

The NBA schedule is a mathematical puzzle with over 3,000 constraints, making it one of the world’s most complex logistical challenges. The league uses a sophisticated algorithm to balance television deals, arena availability, and team travel, resulting in a system that Evan Wasch, the NBA’s executive vice president, calls “the biggest mathematical problem in the world.”

The NBA schedule is a “giant and intricate puzzle,” according to the league’s approach, with a complexity so vast that the number of ways to distribute 1,230 games across about 180 nights exceeds “the number of atoms in the universe,” Wasch said in August. This immense challenge shapes every aspect of the league’s calendar, from prime-time matchups to team travel. The first building block of the schedule is the national television deal, which dictates the framework for the entire season. That deal is now split among media partners who will pay the league $76 billion over eleven years. Peacock airs games on Mondays, NBC on Tuesdays, ESPN on Wednesdays, and Amazon on Thursdays and Fridays. The television contracts impose numerous restrictions. Teams cannot play the night before nationally televised games, including those on the season’s opening week, Christmas, Martin Luther King Day, and Presidents Day. They also cannot play before the 10 Saturday night ABC games, the 6 Sunday afternoon ABC games, the 16 Sunday night NBC games, or any NBA Cup matchups. The final two games for each team are determined only after the group stage concludes and must be slotted between December 4 and 10. This year, 247 games will be broadcast nationally. The Philadelphia 76ers and San Antonio Spurs will play the maximum 34 such games, while the Milwaukee Bucks, who no longer have Giannis Antetokounmpo, are scheduled for just two. The league even had to wait for LeBron James to choose Philadelphia in late July to finalize the schedule, as his decision impacted the 76ers’ trip to Los Angeles, which was set for Christmas. Every nationally televised date must also find an available arena. Teams begin collecting availability dates in November, nearly a year before the season starts. The process is complicated for 11 of 30 teams that share their arena with an NHL hockey team. This year, the NHL increased its schedule from 82 to 84 games, meaning those arenas must host 83 NBA and hockey games combined between late September and mid-April. An NBA team typically has 60 to 70 home dates available, but that number can drop to around 50 for teams sharing with hockey. Other events, such as concerts, further complicate scheduling. In 2022, Gene Li, then the league’s national schedule director, said a colleague’s top priority was collecting arena calendars for hockey, concert dates, and multi-day events like Disney on Ice. The Madison Square Garden presents a unique challenge, as the New York Knicks share it with the Rangers. From late August to October 31, Harry Styles held 30 concerts, every Wednesday, Friday, and Saturday. As a result, the Knicks played only at home on Tuesdays and Sundays in October, including their season opener on October 20, the night before the 25th concert. The San Antonio Spurs face a similar situation in February. From February 11 to 28, their arena hosts the San Antonio Stock Show & Rodeo, with 22 shows and accompanying concerts. After their last home game on February 6, the Spurs play 10 games away from home, from February 9 in Dallas to March 5 in Houston, including two “home” games in Austin. The Los Angeles Lakers navigate the Grammy road trip, a seven-game, 12-day stretch from January 28 to February 8.

On February 7, the Crypto.com Arena, which they share with the hockey Kings, hosts the 69th Grammy Awards. The league’s global expansion also adds complexity, as the Spurs will travel to Paris on January 14 and Manchester on January 17 to play the New Orleans Pelicans. While back-to-back games have decreased from an average of 19.3 per team in the 2014-15 season to 14.2 this year, with no four games in five nights, 59 of this year’s back-to-backs require teams to travel more than 750 miles between games. For decades, the schedule was built manually. Eddie Gottlieb, a former Philadelphia Warriors owner, wrote it on yellow legal pads, and from 1985 to around 2015, Matt Winick constructed it on a spreadsheet, coloring home games blue and road games red. “I tell the teams, ‘Hey, the computer did it this way’,” Winick told Bleacher Report in 2015. “But it wasn’t the computer. I was the computer.”

Today, the process uses Fastbreak, a company founded in 2022 by Chris Groer, Tim Carnes, and John Stewart. Wasch calls the method “constraint-based optimization.” Each rule is assigned a penalty, with infinite penalties for non-negotiable constraints and small ones for preferences, like avoiding home games on Mondays. Teams can also allocate points for specific requests. The Miami Heat, for example, request home games during Art Basel, a prestigious modern and contemporary art fair. Translating “common sense” into numbers is the most difficult part. To teach the model what constitutes a good road trip, Fastbreak had executives rate thousands of past trips on a scale of 1 to 10.

An orderly trip between nearby cities earned an 8 or 9, while a back-and-forth across time zones earned a 3. Using that data, the computer’s ratings came closer to each expert’s judgment than the experts did to each other. “I’m always surprised when we produce a playable schedule,” Stewart admitted. When the first NBA Cup group stages concluded in 2023, Wasch asked his team to run the model on two scenarios—one with the Sacramento Kings winning and one with the Golden State Warriors winning—and the remaining games were announced at 1:45 a.m. New York time. After the schedule is finalized, teams receive a draft and have 48 hours to respond. Once the dates are set, protests from teams and fans follow each summer.

No franchise wants to make it a principled fight, however. The television revenue that dictates Christmas and Sunday night schedules is divided equally among all 30 teams—about $143 million per team last season—and the money quells the controversies. Stewart views the complaints as a sign of a job well done. He calls it “the art of managing disappointment equally”: “If everyone hates you equally, you’ve done your job.”

While the season that started a few weeks ago provides the first indications of the race for the ring, the schedule for the 2027-28 season is already taking shape, with the process of collecting arena availability dates underway. Somewhere in the infinite web of data, there is already the next Phoenix capable of beating Boston against all odds.

basketball Desk

basketball Desk at Archysport.