Get row placement for algorithm