Skip to main content
edited tags
Link
emanresu A
  • 46.2k
  • 5
  • 112
  • 257
Commonmark migration
Source Link

A connected graph is a graph that contains a path between any two vertices.

###Challenge

Challenge

Build a [2-input NAND-gate] circuit that determines whether a 4-vertex graph is connected.
(A gate's 2 inputs can be the same input bit or other gate.)
Output True if the graph is connected, and False otherwise.

###Input

Input

The six possible edges of a simple graph with 4 vertices:

[ 0e1 , 0e2 , 1e2 , 0e3 , 1e3 , 2e3 ​]

where aeb represents whether there is an edge between vertices a and b

Connectedness is equivalent to the following conditions:

  • If less than 3 inputs are True then output False.

  • If more than 3 inputs are True then output True.

  • If exactly 3 inputs are True and they form a triangle then output False.

  • Otherwise, output True.

The answer that uses the fewest gates wins. ​ Ties will be broken by
the lowest circuit depth (length of longest path(s) from input to output).

A connected graph is a graph that contains a path between any two vertices.

###Challenge

Build a [2-input NAND-gate] circuit that determines whether a 4-vertex graph is connected.
(A gate's 2 inputs can be the same input bit or other gate.)
Output True if the graph is connected, and False otherwise.

###Input

The six possible edges of a simple graph with 4 vertices:

[ 0e1 , 0e2 , 1e2 , 0e3 , 1e3 , 2e3 ​]

where aeb represents whether there is an edge between vertices a and b

Connectedness is equivalent to the following conditions:

  • If less than 3 inputs are True then output False.

  • If more than 3 inputs are True then output True.

  • If exactly 3 inputs are True and they form a triangle then output False.

  • Otherwise, output True.

The answer that uses the fewest gates wins. ​ Ties will be broken by
the lowest circuit depth (length of longest path(s) from input to output).

A connected graph is a graph that contains a path between any two vertices.

Challenge

Build a [2-input NAND-gate] circuit that determines whether a 4-vertex graph is connected.
(A gate's 2 inputs can be the same input bit or other gate.)
Output True if the graph is connected, and False otherwise.

Input

The six possible edges of a simple graph with 4 vertices:

[ 0e1 , 0e2 , 1e2 , 0e3 , 1e3 , 2e3 ​]

where aeb represents whether there is an edge between vertices a and b

Connectedness is equivalent to the following conditions:

  • If less than 3 inputs are True then output False.

  • If more than 3 inputs are True then output True.

  • If exactly 3 inputs are True and they form a triangle then output False.

  • Otherwise, output True.

The answer that uses the fewest gates wins. ​ Ties will be broken by
the lowest circuit depth (length of longest path(s) from input to output).

clarified that inputs can be equal
Source Link
user30594
user30594

A connected graph is a graph that contains a path between any two vertices.

###Challenge

Build a [2-input NAND-gate] circuit that determines whether a 4-vertex graph is connected.
(A gate's 2 inputs can be the same input bit or other gate.)
Output True if the graph is connected, and False otherwise.

###Input

The six possible edges of a simple graph with 4 vertices:

[ 0e1 , 0e2 , 1e2 , 0e3 , 1e3 , 2e3 ​]

where aeb represents whether there is an edge between vertices a and b

Connectedness is equivalent to the following conditions:

  • If less than 3 inputs are True then output False.

  • If more than 3 inputs are True then output True.

  • If exactly 3 inputs are True and they form a triangle then output False.

  • Otherwise, output True.

The answer that uses the fewest gates wins. ​ Ties will be broken by
the lowest circuit depth (length of longest path(s) from input to output).

A connected graph is a graph that contains a path between any two vertices.

###Challenge

Build a [2-input NAND-gate] circuit that determines whether a 4-vertex graph is connected.
Output True if the graph is connected, and False otherwise.

###Input

The six possible edges of a simple graph with 4 vertices:

[ 0e1 , 0e2 , 1e2 , 0e3 , 1e3 , 2e3 ​]

where aeb represents whether there is an edge between vertices a and b

Connectedness is equivalent to the following conditions:

  • If less than 3 inputs are True then output False.

  • If more than 3 inputs are True then output True.

  • If exactly 3 inputs are True and they form a triangle then output False.

  • Otherwise, output True.

The answer that uses the fewest gates wins. ​ Ties will be broken by
the lowest circuit depth (length of longest path(s) from input to output).

A connected graph is a graph that contains a path between any two vertices.

###Challenge

Build a [2-input NAND-gate] circuit that determines whether a 4-vertex graph is connected.
(A gate's 2 inputs can be the same input bit or other gate.)
Output True if the graph is connected, and False otherwise.

###Input

The six possible edges of a simple graph with 4 vertices:

[ 0e1 , 0e2 , 1e2 , 0e3 , 1e3 , 2e3 ​]

where aeb represents whether there is an edge between vertices a and b

Connectedness is equivalent to the following conditions:

  • If less than 3 inputs are True then output False.

  • If more than 3 inputs are True then output True.

  • If exactly 3 inputs are True and they form a triangle then output False.

  • Otherwise, output True.

The answer that uses the fewest gates wins. ​ Ties will be broken by
the lowest circuit depth (length of longest path(s) from input to output).

clarified that NAND gates must be 2-input
Source Link
user30594
user30594
Loading
added 50 characters in body
Source Link
lirtosiast
  • 21.6k
  • 5
  • 53
  • 127
Loading
added 50 characters in body
Source Link
lirtosiast
  • 21.6k
  • 5
  • 53
  • 127
Loading
deleted 31 characters in body
Source Link
lirtosiast
  • 21.6k
  • 5
  • 53
  • 127
Loading
Source Link
user30594
user30594
Loading