def get_test_case_and_alg(basename):
	"""
	Extracts the changefile name and algorithm name
	from the basename of the file, e.g.
	changefile100Lazy Floyd-Warshall.out yields the output
	(changefile100, Lazy Floyd-Warshall)
	"""
	# Skip "changefile" in the search of an integer
	i = 10
	while True:
		try:
			# Check if we have reached the start
			# of the algorithm name
			int(basename[i])
		except ValueError:
			# We have reached the start of the
			# algorithm name
			break
		else:
			# We have not reached the start of
			# the algorithm name
			i += 1
	# e.g. return (changefile100, Lazy Floyd-Warshall)
	return (basename[:i], basename[i:-4])