It is not the quantity it is the quality of the citizenry.
In response to one of Moses posts, the constitution would of course be part of the algorithm as would all the standing supreme court decisions, good and bad.
Of course this is an exercise in pure pipe dream fantasy but does anyone think it could be any worse than what we have now?
And the human element is still left in place to a small degree. And we can name it anything but Hal.
When did the Supreme Court become the sole interpreter of the Constitution? It wasn't always that way...you cannot find that authority either... even after the Constitution was ratified. Check out Chisolm v. Georgia where the State of Georgia told the federal courts where to stick it and threatened to lock up and hang any federal enforcers 'by the neck until dead'.