Click here to Skip to main content
15,894,106 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: Mindfulness and coding - sometimes i forget Pin
Gary Wheeler10-May-19 6:48
Gary Wheeler10-May-19 6:48 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
John R. Shaw10-May-19 13:18
John R. Shaw10-May-19 13:18 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
stoneyowl210-May-19 5:16
stoneyowl210-May-19 5:16 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
Daniel Pfeffer10-May-19 5:33
professionalDaniel Pfeffer10-May-19 5:33 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
Gary Wheeler10-May-19 7:09
Gary Wheeler10-May-19 7:09 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
honey the codewitch10-May-19 8:16
mvahoney the codewitch10-May-19 8:16 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
Dr.Walt Fair, PE10-May-19 9:55
professionalDr.Walt Fair, PE10-May-19 9:55 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
Marc Clifton10-May-19 8:31
mvaMarc Clifton10-May-19 8:31 
Much complexity is reduced visually and often by reversing the problem.

I had to come up with an algorithm to figure out whether certain failure modes on a switch-ring network (things used in satellites) still had a solution using spare amplifiers. We're talking trillions of switch combinations to analyze. (Scroll down to figure 4.29 to see a very very simple example.[^]

I discovered that when I looked at a switch ring network, I could easily identify failure points because the logic was simple: the switch has two inputs and two outputs (configurable, so inputs can also be outputs.) But the point was, if the switch was handling 3 inputs, that's fail. If the switch was handling 2 inputs and one of the output paths was known to route to a failed amplifier, that configuration was a fail.

Anyways, the other thing I realized was that I was thinking in terms of the mindset of signal flow, from inputs on the left to outputs on the right. But actually, it was much easier to work the problem from right-to-left, particularly given that the solution had to be found for failures on the output.

Ultimately, the problem reduced down to not even dealing with switch state, but simply whether the switch had inputs <= non-failed output paths.

Funny thing about that was, the algorithm could tell you whether a failure mode could be compensated for with spares, but I couldn't tell you what the switch states were to redirect to the spares! That turned out to be a separate algorithm.
Latest Article - A 4-Stack rPI Cluster with WiFi-Ethernet Bridging

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

Artificial intelligence is the only remedy for natural stupidity. - CDP1802

GeneralRe: Mindfulness and coding - sometimes i forget Pin
honey the codewitch10-May-19 9:07
mvahoney the codewitch10-May-19 9:07 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
Jacquers11-May-19 0:12
Jacquers11-May-19 0:12 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
Dean Roddey11-May-19 8:01
Dean Roddey11-May-19 8:01 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
honey the codewitch11-May-19 8:02
mvahoney the codewitch11-May-19 8:02 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
TNCaver13-May-19 6:52
TNCaver13-May-19 6:52 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
honey the codewitch13-May-19 6:53
mvahoney the codewitch13-May-19 6:53 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
TNCaver13-May-19 8:15
TNCaver13-May-19 8:15 
GeneralRe: Mindfulness and coding - sometimes i forget Pin
honey the codewitch13-May-19 6:54
mvahoney the codewitch13-May-19 6:54 
GeneralAuthor, "Design of Everyday Things" explains problems Pin
raddevus10-May-19 2:47
mvaraddevus10-May-19 2:47 
GeneralRe: Author, "Design of Everyday Things" explains problems Pin
Rick York10-May-19 4:56
mveRick York10-May-19 4:56 
GeneralRe: Author, "Design of Everyday Things" explains problems Pin
Gary Wheeler10-May-19 6:56
Gary Wheeler10-May-19 6:56 
GeneralRe: Author, "Design of Everyday Things" explains problems Pin
raddevus10-May-19 7:13
mvaraddevus10-May-19 7:13 
GeneralRe: Author, "Design of Everyday Things" explains problems Pin
Gary Wheeler10-May-19 7:16
Gary Wheeler10-May-19 7:16 
GeneralRe: Author, "Design of Everyday Things" explains problems Pin
raddevus10-May-19 8:52
mvaraddevus10-May-19 8:52 
GeneralRe: Author, "Design of Everyday Things" explains problems Pin
Rick York10-May-19 9:13
mveRick York10-May-19 9:13 
GeneralEasy for me, hard for the computer? Pin
honey the codewitch10-May-19 2:23
mvahoney the codewitch10-May-19 2:23 
GeneralRe: Easy for me, hard for the computer? Pin
OriginalGriff10-May-19 2:37
mveOriginalGriff10-May-19 2:37 

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.