The worst-case behavior of the heap-construction phase of Heapsort escaped mathematically precise characterization by a closed-form formula for almost five decades. This paper offers a proof that the exact number of comparisons of keys performed in the worst case during construction of a heap of size N is: 2N − 2s2(N) − e2(N), where s2(N) is the sum of all digits of the binary representation of N and e2(N) is the exponent of 2 in the prime factorization of N. It allows for derivation of this best-known upper bound on the number of comparisons of Heapsort: (2N − 1)$\lceil$lgN$\rceil$ − 2$\lceil$lgN$\rceil$+1 − 2s2(N) − e2(N) + 5.
Abstract:The article presents a solution of a problem that is critical from a practical point of view: how to share a higher than usual discount of $10 million among 5 importers. The discount is a result of forming a coalition by 5 current, formerly competing, importers. The use of Shapley value as a concept for co-operative games yielded a solution that was satisfactory for 4 lesser importers and not satisfactory for the biggest importer. Appropriate modification of Shapley value presented in this article allowed to identify appropriate distribution of the saved purchase amount, which according to each player accurately reflects their actual strength and position on the importer market. A computer program was used in order to make appropriate calculations for 325 permutations of all possible coalitions. In the last chapter of this paper, we recognize the lasting contributions of Lloyd Shapley to the cooperative game theory, commemorating his recent (March 12, 2016) descent from this world.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.