loop and branch

Discussion in 'General Electronics Chat' started by kimo3825, Dec 15, 2006.

  1. kimo3825

    Thread Starter New Member

    Dec 15, 2006
    what is the difference between a loop and a branch? it seems to me they are the same thing.
  2. Papabravo


    Feb 24, 2006
    In a loop you can start from any point and return to that same point. A loop is the same thing as a complete circuit. A branch is a piece of a loop. It has distinct endpoints. It is not a complete circuit.
  3. thingmaker3

    Retired Moderator

    May 16, 2005
    The term "branch" is also used in building wiring - refers to wiring from a given breaker in a panel. "Loop" is not used in this context, though. "Feeder" is the circuit that feeds the panel - coming from a more robust breaker panel if in larger building. "Service" is what powers the feeders.

    "Loop" is also used in fire alarm systems. Definition is similar to that given by Papabravo above.

    "Service Loop" is a coil of extra conductor in a circuit. It is stored for the convenience of service personell.
  4. Søren

    Senior Member

    Sep 2, 2006

    Just to add my view.
    A loop is something that keeps going in circles (unless interrupted somehow of course).

    A branch is where you have more than one way to proceed.

    An example in BASIC-like pseudo code:

    1 Begin:
    2 A=A+1
    3 print A
    4 if A = 7 goto Enough
    5 Goto Begin
    7 Enough
    8 Print "Bye bye"
    9 End

    Lines 1 to 5 is the loop and line 4 contains a conditional branch.