Click here to Skip to main content
15,892,253 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: ZIP common root fantasy Pin
Mircea Neacsu23-Oct-21 11:10
Mircea Neacsu23-Oct-21 11:10 
GeneralRe: ZIP common root fantasy Pin
BernardIE531723-Oct-21 12:58
BernardIE531723-Oct-21 12:58 
GeneralRe: ZIP common root fantasy Pin
RickZeeland23-Oct-21 19:46
mveRickZeeland23-Oct-21 19:46 
GeneralRe: ZIP common root fantasy Pin
peterkmx24-Oct-21 1:52
professionalpeterkmx24-Oct-21 1:52 
GeneralRe: ZIP common root fantasy Pin
RickZeeland24-Oct-21 2:06
mveRickZeeland24-Oct-21 2:06 
GeneralRe: ZIP common root fantasy Pin
Fueled By Decaff25-Oct-21 1:28
Fueled By Decaff25-Oct-21 1:28 
GeneralRe: ZIP common root fantasy Pin
englebart25-Oct-21 7:05
professionalenglebart25-Oct-21 7:05 
PraiseI love when that happens! Pin
honey the codewitch23-Oct-21 7:32
mvahoney the codewitch23-Oct-21 7:32 
I was making a state removal method that would turn a state machine into a regular expression.

In the process I needed to do a subtask, to wit, I needed to set up a quick and dirty finite automaton engine to hold the states.

Rather than make a bunch of objects/states that point to other objects/states using dictionaries, I simply stored all the dictionary transitions as a single tuple (int from, int to, string input) in a flat list.

The result is smaller, and allows me to do complicated queries on the relationships between the states (now represented as simple integers) very simply.

In fact, the result is so good, I may be able to rewrite a more compact and efficient state engine using this technique. And it was originally just intended to be "just enough of a thing" to be scaffolding for my overarching algorithm to work with.

I'm elated. Even if the overarching algorithm doesn't work, it means far more compact and efficient code potentially in terms of the finite automata code it works with.

Big Grin | :-D
Real programmers use butterflies


modified 23-Oct-21 14:03pm.

GeneralRe: I love when that happens! Pin
PIEBALDconsult23-Oct-21 7:59
mvePIEBALDconsult23-Oct-21 7:59 
GeneralRe: I love when that happens! Pin
honey the codewitch23-Oct-21 8:01
mvahoney the codewitch23-Oct-21 8:01 
GeneralRe: I love when that happens! Pin
Richard Andrew x6423-Oct-21 8:00
professionalRichard Andrew x6423-Oct-21 8:00 
GeneralRe: I love when that happens! Pin
honey the codewitch23-Oct-21 8:02
mvahoney the codewitch23-Oct-21 8:02 
GeneralRe: I love when that happens! Pin
Nelek23-Oct-21 9:18
protectorNelek23-Oct-21 9:18 
GeneralRe: I love when that happens! Pin
jschell24-Oct-21 7:03
jschell24-Oct-21 7:03 
GeneralRe: I love when that happens! Pin
honey the codewitch24-Oct-21 7:23
mvahoney the codewitch24-Oct-21 7:23 
GeneralRe: I love when that happens! Pin
jschell23-Dec-21 5:18
jschell23-Dec-21 5:18 
GeneralRe: I love when that happens! Pin
honey the codewitch23-Dec-21 5:21
mvahoney the codewitch23-Dec-21 5:21 
GeneralRe: I love when that happens! Pin
englebart25-Oct-21 7:19
professionalenglebart25-Oct-21 7:19 
GeneralRe: I love when that happens! Pin
honey the codewitch25-Oct-21 7:25
mvahoney the codewitch25-Oct-21 7:25 
GeneralMy takeaway from Arden's Theorem. Pin
honey the codewitch22-Oct-21 7:44
mvahoney the codewitch22-Oct-21 7:44 
GeneralRe: My takeaway from Arden's Theorem. Pin
PIEBALDconsult22-Oct-21 8:04
mvePIEBALDconsult22-Oct-21 8:04 
GeneralRe: My takeaway from Arden's Theorem. Pin
RickZeeland22-Oct-21 9:00
mveRickZeeland22-Oct-21 9:00 
GeneralRe: My takeaway from Arden's Theorem. Pin
OriginalGriff22-Oct-21 9:16
mveOriginalGriff22-Oct-21 9:16 
GeneralRe: My takeaway from Arden's Theorem. Pin
RickZeeland22-Oct-21 9:19
mveRickZeeland22-Oct-21 9:19 
GeneralRe: My takeaway from Arden's Theorem. Pin
Greg Utas22-Oct-21 10:06
professionalGreg Utas22-Oct-21 10:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.