Deterministic computation of complexity, information and entropy