G'day everyone.
Back from leave, so time to post again.
I have been thinking for a while on methods to automate the automation process (thus automation^2). At the moment, most automation is at the hand crafted or maybe power tool stage of development. We do not yet have methods for automating the programming stage, although things are getting easier. Semi automation is possible, with reusable code and copy and paste, but full blown automation is not yet there.
Kicking round some thoughts on this, I got the idea of setting up a lookup book of truth tables vs optimal logic for that table. A bit of maths came up with the formula for number of inputs compared to number of solutions. A 3 input truth table has 8 entries, or 2^3. A four input truth table has 16 entries or 2^4, and an n input truth table has 2^n entries.
As far as possible optimal solutions are concerned, a 3 input combination has 256 possible truth tables, and therefor optimal solutions. A 4 input combination has 65536 possible truth tables. This means that there are 2^(2^n) possible logic combinations for n inputs.
For three inputs and 256 solutions, one page per solution, this lookup table can fit into a printed book.
For 4 inputs and 65536 solutions, this table can fit onto a CD rom with a search function.
5 inputs pushes the number of solutions to 4 Gig of solutions, possibly allowing them to fit on a large hard drive without compression.
A small PLC, with 8 inputs and 6 outputs can be setup for up to 10Exp68 Gig worth of solutions, probably exceeding the size of all media storage on the planet.
I have yet to consider internal bits and sequence bits.
Obviously, us programmers will not be replaced with a handbook of lookup tables for a while yet.
Doug
Back from leave, so time to post again.
I have been thinking for a while on methods to automate the automation process (thus automation^2). At the moment, most automation is at the hand crafted or maybe power tool stage of development. We do not yet have methods for automating the programming stage, although things are getting easier. Semi automation is possible, with reusable code and copy and paste, but full blown automation is not yet there.
Kicking round some thoughts on this, I got the idea of setting up a lookup book of truth tables vs optimal logic for that table. A bit of maths came up with the formula for number of inputs compared to number of solutions. A 3 input truth table has 8 entries, or 2^3. A four input truth table has 16 entries or 2^4, and an n input truth table has 2^n entries.
As far as possible optimal solutions are concerned, a 3 input combination has 256 possible truth tables, and therefor optimal solutions. A 4 input combination has 65536 possible truth tables. This means that there are 2^(2^n) possible logic combinations for n inputs.
For three inputs and 256 solutions, one page per solution, this lookup table can fit into a printed book.
For 4 inputs and 65536 solutions, this table can fit onto a CD rom with a search function.
5 inputs pushes the number of solutions to 4 Gig of solutions, possibly allowing them to fit on a large hard drive without compression.
A small PLC, with 8 inputs and 6 outputs can be setup for up to 10Exp68 Gig worth of solutions, probably exceeding the size of all media storage on the planet.
I have yet to consider internal bits and sequence bits.
Obviously, us programmers will not be replaced with a handbook of lookup tables for a while yet.
Doug