I've posted your questions over at the Alchemist lab. However, I think I know the answer to the second one: no-one knows the algorithm, or is even entirely sure what influences it. Number of ships and the quality of the admiral appear the most important factors, but succes in sea battles seems to be inversely related to victory on land.