CodeX
Published in

CodeX

Photo by CHUTTERSNAP on Unsplash

Cardano, Solana, Polkadot, Fantom and Telos vs the Clock!

Introduction

Key Metrics to Compare

Side-by-Side Comparison

Transactions per second (TPS)

Summary

Blocktime

Summary

Programming Language

  • Take a permutation of {1,…,n}, for example, {4,2,1,5,3}.
  • Take the first element, 4 here, and reverse the order of the first 4 elements: {5,1,2,4,3}.
  • Repeat this until the first element is a 1, so flipping won’t change anything more: {3,4,2,1,5}, {2,4,3,1,5}, {4,2,3,1,5}, {1,3,2,4,5}.
  • Count the number of flips, here 5.
  • Keep a checksum:
    - checksum = checksum + (if permutation_index is even then flips_count else -flips_count)
    - checksum = checksum + (toggle_sign_-1_1 * flips_count)
  • Do this for all n! permutations, and record the maximum number of flips needed for any permutation.

Summary

Summing up

--

--

Everything connected with Tech & Code. Follow to join our 1M+ monthly readers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ross Pearce

A full-stack dev. Passionate about building & breaking stuff. Solidity + Truffle = The Future