S3E27. Narayana's next linear permutation algorithm
In this episode we trace a plausible honing in on an algorithm that can generate a lexicographically next linear permutation based solely on the information that is packed into the input (linear) permutation. Evidently, such a an algorithm was put together by an Indian mathematician Narayana Pandita (1340-1400) some time in the fourteenth century. We begin with an attempt to solve the problem of generating "all" linear permutations in any which way we can. And, it turns out, fairly quickly we can invent a naive "pend and paper" algorithm to do just that if we use the "Scope Reduction" or the "Reduce And Conquer" problem-solving approach. Once we understand how to generate all linear permutations of n distinct elements by-hand, we introduce a definition of a lexicographical order and, using that definition, we arrange all the permutations that were generated via our naive "pen and paper" algorithm in the order that is lexicographical. While we do that lexicographical ordering by-hand, we ponder: what single rule applied to any one such permutation will crank out the next one? The answer to that question, in this episode, is the Narayana's Next Linear Permutation Algorithm. We also share with our audience a sample implementation of that algorithm in the best programming language of all times, C.

Prof. Dr. Paolo Pistone - The garden of forking paths

S3E23: The Shunting Yard Algorithm and Its Slow-Motion Player

How Groth16 Works | Proof is in the Pudding

S3E34. Hyperbolic functions defined by a direct analogy with circular functions

S3E36. A vicious circle or lords of the ring

S3E40. How CS and Group Theory found a diamond

S3E39. A bead sliding off of a massless rod that rotates with a decreasing angular velocity

S3E30. A Loxodrome, a deduction of an equation

S3E38. What mathematicians do all day or Euler-Poisson integral evaluation via the Squeeze Theorem

S2E7: Two eggs versus one building

S3E31. An integer as a sum of two elements of a sorted array

CHOSEN ONE!! YOUR IDENTITY REVEAL JUST SHOOK THE INTERNET... AND THEIR MINDS

S3E37. Sine as an infinite product and its three applications

S3E32. Hyperbolically speaking

Hjalmar Schacht: How One Banker Created Nazi Germany’s Economic Miracle Documentary

S3E24. Three creative evaluations of ubiquitous integrals

What is SonarQube | Introduction SonarQube | SonarQube Tutorial | SonarQube Basics | Intellipaat

S3E35. Twice telescopic rotating antenna, the kinematics of

S3E28. In Like A Lion, Out Like A Lamb

