Volume 1, Issue 2 e1019
RESEARCH ARTICLE
Full Access

Computational analysis of LED circuits based on partial quasi-group rings

Raúl M. Falcón

Corresponding Author

Raúl M. Falcón

Department of Applied Mathematics I, Universidad de Sevilla, Seville, Spain

Raúl M. Falcón, Department of Applied Mathematics I, ETS de Ingeneria de Edificacion, Universidad de Sevilla, Avenida Reina Mercedes 4 A, 41012 Seville, Spain.

Email: [email protected]

Search for more papers by this author
Juan Núñez

Juan Núñez

Department of Geometry and Topology, Universidad de Sevilla, Seville, Spain

Search for more papers by this author
First published: 07 March 2019
Raúl M. Falcón, School of Building Engineering, Avenida Reina Mercedes 2, 41012, Seville, Spain

Abstract

Since the original idea of Claude Shannon about describing switching circuits by means of Boolean algebras, the working of devices within electric circuits has been modeled in the literature by means of different types of algebras. This paper delves into this topic by dealing with the synthesis and computational analysis of light-emitting diode (LED) circuits through which the electric current is regulated by a set of devices (voltage regulators, single-pole double-throw relays, analog multipliers, capacitors, resistors, and push buttons) whose working is uniquely described by a given partial quasi-group ring, or, equivalently, by a partial Latin square. Some results on the existing relationship among the designed circuits and these algebraic and combinatorial structures are exposed. Furthermore, to illustrate this relationship, we introduce a light switching game whose goal is lighting all the LEDs within a circuit based on a given partial quasi-group ring. The solvability of the game is analyzed by making use of computational algebraic geometry.

1 INTRODUCTION

In 1938, Claude Shannon1 introduced Boolean algebras in electrical engineering to deal with the synthesis and analysis of switching circuits. Recall in this regard that a switch is a device that can interrupt the flow of the electric current through an electric circuit. It has two mutually exclusive states: closed, if the electric current can flow, and open, if otherwise. Based on this fact, Shannon identified switches within an electric circuit with Boolean variables so that the working of such devices is uniquely described by a series of Boolean equations. This would constitute the fundamentals of the binary arithmetic of modern computers.

Since the original work of Shannon, different algebras have been used in the literature to model the working of other types of devices within electric circuits. Thus, for instance, Bryant2 remarked the role that matrix algebra plays to model the different connections within electric circuits containing resistors, capacitors, and inductors by means of incidence matrices of graphs representing such circuits. Much more recently, electrical networks consisting only of resistors have been modeled by means of the so-called electrical Lie algebras.3, 4 All these models are based on lumped circuits, for which the electrical impedance only depends on time but not on the spatial distribution of the devices, that is, current through and voltage across conductors do not vary. On the other hand, complex algebra5 and geometric algebra6, 7 provide efficient approaches to model the flow of electric current through devices within distributed circuits, for which the electrical impedance also depends on space.

This paper delves into the algebraic representation of devices within lumped circuits. More specifically, we focus on the synthesis and computational analysis of light-emitting diode (LED) circuits through which the flow of electric current is regulated by a set of devices (voltage regulators, single-pole double-throw (SPDT) relays, analog multipliers, capacitors, resistors, push buttons, and, of course, LEDs) whose topology and working are uniquely described by a given partial quasi-group ring, or, equivalently, by a partial Latin square. The characterization of such circuits according to their structural properties enables us to endow partial quasi-groups and partial Latin squares with new invariants that make easier their classification. Currently, the search of such invariants constitutes an open and active problem.8-11 The study of combinatorial designs by means of electric circuits was already considered by Brooks et al12 and Tjur13. Further, Kumar et al14 dealt with the completion problem of partial Latin squares motivated by its possible application to light path assignments and switch configurations. Much more recently, Vaskouski and Zadorozhnyuk15 have dealt with electric circuits associated to the Cayley graph on a symmetric group, which were based in turn on a previous design of interconnection networks based on finite groups.16

In the literature, (partial) quasi-groups and (partial) Latin squares have motivated the introduction and later analysis of different types of combinatorial games.17-23 This paper also delves into this topic. Thus, to illustrate the existing relationship among the designed LED circuits and the algebraic and combinatorial structures from which they arise, we introduce a light switching game whose goal consists of lighting all the LEDs within one such a circuit. Similarly to other types of light switching games,24-28 we make use of computational and algebraic tools to analyze the solvability of the game. More specifically, we make use of computational algebraic geometry to deal with such a problem. This approach has already been used in the literature to analyze the solvability of other games based on combinatorial designs29-32

This paper is organized as follows. In Section 2, we expose some preliminaries on electric circuits and partial quasi-group rings. Section 3 deals with the synthesis and analysis of our proposal of an LED circuit based on a given partial quasi-group ring. Finally, in Section 4, we introduce and analyze computationally the mentioned light switching game that is based on such circuits.

2 PRELIMINARIES

Let us review some basic concepts and results on electric circuits and partial quasi-group rings that are used throughout this paper. We refer the reader to the manuscripts33-35 for more details on both topics.

2.1 Electric circuits

Electric charge is a basic property of matter that is carried by the elementary particles within each atom: Electrons carry negative electric charge, whereas protons carry positive one. Thus, the electric charge of a given piece of matter is that one carried by its protons minus that one carried by its electrons. According to the International System of Units (SI), the unit of quantity of electric charge is the coulomb, which is approximately equivalent to the charge of 6.242 × 1018 protons.

A point charge is the electric charge at a given point of matter. It exerts a force on any other point charge, which is repelling if both charges are of the same type (positive or negative) or attracting if otherwise. The voltage between both points is the work required to move a coulomb between them. Its SI unit is the volt.

An electric current is a flow of electric charge derived from the movement of electrons through a given electrical conductor. Depending on the conductive material or the environmental conditions, every electrical conductor presents a constant opposition to any electric current through itself, which is called resistance.

An electric circuit is a circular path made of electrical conductors through which an electric current flows. This is parallel if there are branches in the path. A junction is any point within a parallel circuit where three or more branches meet together. Further, the impedance of an electric circuit is the measure of the opposition that such a circuit, or a part of it, presents to the electric current. This includes the resistance of electrical conductors. Finally, the synthesis of an electric circuit consists of designing it from a given input-output relationship, whereas its analysis consists of determining such a relation by means, for instance, of an operation table where all the currents and voltages are exposed.

If the electric charge flows always in the same direction through a circuit, then the initial point from which the electrons enter into the circuit is its source  urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0001, whereas the final point to which the electrons flow and leave the circuit is its ground  urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0002. Both points constitute the terminals of a voltage source, which maintains a fixed voltage anywhere in the circuit, regardless of the existing current or impedance.

The electrical conductors between urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0003 and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0004 constitute the load of the circuit. This is formed by different devices controlling the electric current through the circuit or the voltage between its points and a set of wires connecting them. Each device has at least one input terminal into which the current flows from the circuit and at least one output terminal from which the current flows towards the circuit. Regardless of their types, the way in which the devices are interconnected constitutes the topology of the circuit. The following devices are used throughout this paper.
  • A battery is a voltage source that converts chemical energy into electrical energy in the form of voltage, which in turn makes electric current to flow.
  • A voltage regulator provides a fixed output voltage of a preset magnitude that remains stable regardless of the input current or voltage.
  • An SPDT relay modifies the direction of the current. It has an input terminal and two output terminals.
  • An analog multiplier produces a voltage that is equivalent to the product of two independent voltages from its two input terminals.
  • A push button enables the current to flow through the circuit when it is pressed and held, and interrupts the current when it is released.
  • A capacitor stores up to a certain charge at up to a certain voltage. Once it is fully charged (and hence, its maximum voltage is reached), the current stops flowing through the branch of the circuit where the capacitor is.
  • A resistor introduces resistance into the circuit.
  • A diode enables the current to flow freely through it in only one direction. An LED constitutes a light-emitting diode.

Every circuit is schematically drawn as a diagram where devices are represented by conventional symbols (see Figure 1, where terminals are represented by the symbol ∘). A schematic of a parallel circuit is shown in Figure 2, where junctions are represented by the symbol •. The labels therein are explained in Section 3.

Details are in the caption following the image
Conventional symbols of some devices. LED, light-emitting diode; SPDT, single pole double throw
Details are in the caption following the image
Schematic of a light-emitting diode circuit based on a partial quasi-group ring

2.2 Partial quasi-group rings

A quasi-group is a pair (Q,·), where Q is a finite set endowed with a binary operation · such that, if any two of the three symbols in the equation a·b = c are given as elements in Q, then the third one is uniquely determined. The cardinality of Q is the order of the quasi-group.

The concept of a quasi-group is straightforwardly generalized to that of incomplete or partial quasi-group,36 for which (1) the law · is a partial binary operation, and (2) if any of the two equations a·x = b or y·a = b, with a,b ∈ Q, has solution for x,y ∈ Q, then the solution is unique. The domain and image of a partial quasi-group (Q,·) are, respectively, defined as the sets
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0005
If urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0006, then Q is called trivial. Otherwise, it is called nontrivial. Further, if urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0007, then Q is indeed a quasi-group. Two partial quasi-groups (Q1,·) and (Q2,∘) of the same order are said to be isomorphic if there exists a bijection π:Q1Q2 such that π(i)∘π( j) = π(i·j), for all urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0008.

The multiplication table of a partial quasi-group (Q,·) of order n constitutes a partial Latin square of the same order, that is, an n × n array in which each cell is either empty or contains one symbol chosen from the set Q, such that each symbol occurs at most once in each row and in each column. If there are not empty cells, then this constitutes a Latin square of order n. In such a case, the pair (Q,·) is, in turn, a quasi-group. Isomorphisms of partial quasi-groups are uniquely related to a same permutation of the rows, columns, and symbols of its related partial Latin square. The distribution of Latin squares into isomorphism classes is known for order n ≤ 11,37-39, and that of partial Latin squares has been explicitly computed for order n ≤ 6.40-42

In 1944, Bruck33 introduced the concept of quasi-group ring based on a quasi-group (Q,·) as an n-dimensional algebra urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0009 of basis β = {e1,…,en} over a ground field urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0010, so that its multiplication operation [.,.] is linearly defined as [ei,ej] = ei·j, for all i,j ∈ Q. We call β the natural basis of urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0011. The notion of a partial quasi-group ring is similarly defined once Q is allowed to be partial. In particular, (partial) quasi-group rings based on isomorphic (partial) quasi-groups are also isomorphic. Different types of partial quasi-group rings have been studied from a computational point of view.43-45

3 LED CIRCUITS BASED ON PARTIAL QUASI-GROUP RINGS

Let urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0012 denote the set of nontrivial partial quasi-groups over the finite set [n]: = {1,…,n} having as a multiplication table a partial Latin square whose main diagonal is formed only by empty cells. This section deals with the synthesis and analysis of a proposal of LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0013 based on a given partial quasi-group urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0014.

3.1 Synthesis

First, we enumerate the devices within our circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0015. In addition to the battery urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0016, this consists of
  • a voltage regulator VRi and a relay SPDTi, for each i ∈ [n];
  • an analog multiplier Mij and a push button Bij, for each pair urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0017;
  • a capacitor Ci, a resistor Ri, and an LED Li, for each positive integer urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0018; and
  • a (multiple) push button FB, which we call final button.
Second, we describe the topology of the circuit. To this end, we denote urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0019 whenever the ith output terminal of a device D is connected to the jth input terminal of a device D. If a terminal is unique as input or output in the device under consideration, then we remove the corresponding index. Further, we denote urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0020 and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0021 whenever the device D is connected to the source or the ground, respectively. Thus, the topology of the LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0022 is described as follows. For each pair urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0023, the following sequence holds.
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0024(1)

Example 1.Let urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0025 be the partial quasi-group having the following partial Latin square as multiplication table:

According to 1, the LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0026 is described by means of the following three sequences:

urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0027
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0028
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0029
More visually, Figure 2 constitutes a schematic of the LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0030. urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0031

3.2 Analysis

To perform the analysis of the LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0032 that we have just described in the previous subsection, we introduce the following definition.

Definition 1.Let urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0033, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0034 be a field of characteristic urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0035 and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0036 so that ri > 0, for all i ∈ [n]. We denote urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0037 as the LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0038 working as follows.

  1. The battery voltage is urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0039 volts whenever urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0040. Otherwise, it is urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0041.
  2. The current flows from the source towards the capacitors (and toward the LEDs if the final button were switched on) once the next actions are sequentially made.

    • Each voltage regulator VRi is regulated so that a stabilized voltage of urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0042 volts is provided from its output terminal, where urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0043.

    • A partition {S1,S2} of the set [n] is defined so that, for each i ∈ [n] and each k ∈ {1,2}, the relay SPDTi is switched towards its kth output terminal if and only if i ∈ Sk.
    • A subset urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0044 is defined so that the push button Bij is pressed if and only if (i,j) ∈ B1 × B2.

    We define a pulse within urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0045 as the complete set of physical effects produced after all the previous actions are sequentially made. That is, the recharge of capacitors and, if the final button were switched on, the lighting of LEDs.

  3. The maximum voltage that each capacitor within the circuit can store is urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0046 volts. Moreover, an electrical spark is produced whenever such a maximum voltage is reached, so that the capacitor under consideration is fully discharged, without any loss of its storage capacity.

    Hence, each time that a push button Bij is pressed, held, and released, the original voltage of ci·j volts stored within the capacitor Ci·j becomes

    urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0047
    volts.

  4. If the final button is switched on, then, for each i ∈ [n], the resistance of the resistor Ri reduces urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0048 volts the voltage of the capacitor Ci. Then, these volts flow from Ci towards the LED Li. Remark that, within each pulse, only one such a reduction of voltage is produced from each capacitor. In practice, the maximum voltage required by each LED Li to be lighted without burning out are these ri volts. The more voltage is provided to the LED the more luminous intensity emits.

Let us illustrate the previous definition with an example. In its formulation and from here on, we use the conventional notation urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0049 to denote the finite field of characteristic k.

Example 2.Let Q be the partial quasi-group described in Example 1 and let us consider the LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0050. According to Definition 1, such a circuit has the following properties.

  1. Its battery voltage is vmax = 2 volts.
  2. To produce a pulse within the circuit, its three voltage regulators can only be regulated so that either zero volts or one volt are provided as output from each one of them.
  3. The storage capacity of each one of its two capacitors is one volt. Moreover, if a second volt comes into a charged capacitor in a pulse, then an electrical spark is produced so that the capacitor becomes fully discharged.
  4. The resistance of each one of its two resistors is also one volt. As a consequence, all the capacitors of the circuit are fully discharged after the final button of the circuit is pressed. urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0051

Let urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0052 be the partial quasi-group ring related to a partial quasi-group urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0053, and let {e1,…,en} be the natural basis of urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0054. From here on, we say that two vectors urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0055 and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0056 in urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0057 are compatible if aibi = 0, for all i ∈ [n]. The following result establishes how the working of the LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0058 can be algebraically represented by multiplying compatible vectors within urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0059.

Lemma 1.The working of the LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0060 is uniquely determined by the partial quasi-group ring urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0061.

Proof.Keeping in mind the synthesis and working of the circuit, let us see how, after a pulse is produced, the new voltage that is stored by the capacitors within urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0062 is uniquely determined by making use of the partial quasi-group ring urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0063.

For each i ∈ [n], let ai (respectively, bi) be the amount of volts that are stabilized by the voltage regulator VRi whenever i ∈ S1 (respectively, S2), and zero, if otherwise. If {e1,…,en} is the natural basis of urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0064, then we consider the vectors

urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0065
Observe that both vectors are compatible, because {S1,S2} is a partition of the set [n]. Moreover, for each k ∈ {1,2}, the coefficient of the basis vector ei in vk is the voltage provided by the kth output terminal of the relay SPDTi within urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0066. Hence, the coefficient of each basis vector ei·j in urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0067 is the voltage that is attempted to be stored in the capacitor Ci·j whenever the push button Bij is pressed, held, and released. Thus, the distribution of the total recharge of voltage into the capacitors within urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0068 is uniquely determined by the corresponding coefficients in the product [v1,v2]. Moreover, the loss of the whole voltage within each capacitor, which is due to the electrical sparks that are produced each time that it is fully charged, is algebraically represented by taking modulo urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0069, as it is indicated at the end of the third statement in Definition 1.

Further, the sum of different products of compatible vectors within the partial quasi-group ring urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0070 represents a series of pulses within the circuit, so that each addend constitutes an independent recharge of capacitors. When the final button is pressed, the whole stored charge flows from the capacitors towards the LEDs within the circuit.

Finally, the resistance of resistors avoiding LEDs to burn out can be algebraically represented as a convenient subtract, as it is indicated in the fourth statement in Definition 1.

Example 3.Let Q = ([3],·) and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0071 be the partial quasi-group and the LED circuit that we have respectively described in Examples 1 and 2. Moreover, let {e1,e2,e3} be the natural basis of the partial quasi-group ring urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0072. Let us consider, for instance, the compatible vectors e1 and e2 + e3. Their product within urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0073 is

urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0074
According to the proof of Lemma 1, the previous product involves that, once the voltage regulators VR1, VR2, and VR3 are regulated so that exactly one volt is produced from each one of them, if the voltage throughout the relay SPDT1 is redirected towards it first output terminal and the voltage throughout both relays SPDT2 and SPDT3 are redirected towards their corresponding second output terminals, then one volt comes into the capacitor C1 and another volt comes into the capacitor C2.

Let us focus now on the pulse corresponding to the following product of compatible vectors.

urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0075
This means that exactly one volt comes into the capacitor C2 once one volt is redirected from the voltage regulator VR2 towards the first output terminal of the relay SPDT2 and another volt is redirected from the voltage regulator VR1 towards the second output terminal of the relay SPDT1.

Observe at this point that, if the pulse represented by the product [e2,e1] is produced immediately after that one represented by the product [e1,e2 + e3], then two volts come into the capacitor C2. As a consequence, if the final button is not pressed, then an electrical spark is produced so that the mentioned capacitor becomes fully discharged. Remark how this fact is algebraically represented once both products are added. To this end, keep in mind that the characteristic of the ground field urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0076 is two.

urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0077
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0078

Proposition 1.The topology and working of the LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0079 only depends on the isomorphism class of the partial quasi-group Q.

Proof.Let Q = ([n],∘) be a partial quasi-group that is isomorphic to Q by means of an isomorphism π:[n]→[n]. In particular, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0080 implies that urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0081 because urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0082 if and only if urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0083; hence, the main diagonal of the partial Latin square associated to Q is only formed by empty cells, as it happens with that of Q.

Furthermore, each device in the circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0084 that is labeled as Di, with D ∈ {VR,SPDT,C,R,L} (respectively, Dij, with D ∈ {M,B}), is uniquely related to the device of the same type in the circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0085 that is labeled as urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0086 (respectively, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0087). This relation is well-defined because urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0088 if and only if urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0089. Thus, the interconnection among devices is preserved; hence, the topology of urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0090 coincides with that of urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0091, where r = (rπ(1),…,rπ(n)).

Finally, let {e1,…,en} and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0092 be the respective bases of the partial quasi-group rings urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0093 and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0094. Both algebras are isomorphic by means of the isomorphism urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0095 that is linearly defined so that urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0096, for all i ∈ [n]. Thus, the working of the circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0097 is uniquely determined by the partial quasi-group ring urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0098 as in the proof of Lemma 1 once each basis vector ei is replaced with urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0099. Hence, the working of both circuits urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0100 and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0101 coincide.

Proposition 1 enables us to ensure that our designed LED circuits can be used to define new isomorphism invariants that make easier the distribution into isomorphism classes of the set urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0102 and, hence, of partial Latin squares having empty cells in their main diagonal. To deal with this, we introduce the following definitions.

Definition 2.We say that the LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0103 has a clear configuration if it satisfies the following physical conditions:

  1. All its capacitors are uncharged.
  2. Its final button is switched on. The rest of the push buttons are switched off.
  3. All its LEDs are off.

Then, we define the luminescence of urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0104 as the maximum number urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0105 of LEDs that can be lighted by producing only one pulse from a clear configuration of the circuit. Further, we define the efficiency level of urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0106 as the minimum number urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0107 of pulses that are required to light all its LEDs by starting from a clear configuration of the circuit, regardless of the luminous intensities that they emit. If such a lighting is not possible whatever the number of pulses is produced, then we define urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0108.

Let us illustrate the previous definition with a pair of examples.

Example 4.Under the assumptions of Example 3, we have that urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0109, because [e1,e2 + e3] = e1 + e2. This implies readily that urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0110. urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0111

Example 5.Let urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0112 be the partial quasi-group having the following partial Latin square as multiplication table:

Let urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0113 be a ground field, and let {e1,e2,e3} be the natural basis of the partial quasi-group ring urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0114. Moreover, let

urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0115
be two compatible vectors in urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0116. From the definition of Q, we have that
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0117
The compatibility of the vectors v1 and v2 implies that a1b1 = 0; hence, no pulse can be produced to light the three LEDs of the circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0118, whatever the triple urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0119 is. As a consequence, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0120.

In fact, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0121, whatever the ground field urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0122 and the triple r are because the following product of compatible vectors always hold.

urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0123
Concerning the efficiency level of this LED circuit, we refer the reader to Example 6. urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0124

The reasoning exposed in Example 4 concerning how a maximum luminescence is uniquely related to an efficiency level of value one is established in the following lemma.

Lemma 2.Let urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0125, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0126 be a field and r = (r1,…,rn) be a tuple in urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0127 so that ri > 0, for all i ∈ [n]. Then, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0128 if and only if urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0129.

Proof.According to the synthesis of urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0130, the cardinality of urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0131 coincides with the number of LEDs within the circuit. Hence, the result follows readily from the definition of luminescence and efficiency level.

Lemma 3.Let urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0132 and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0133. Then, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0134 if and only if urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0135.

Proof.Since urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0136, it is not possible to light all the LEDs of the circuit by producing only one pulse from a clear configuration. Moreover, under our assumptions, whatever two compatible vectors we choose to produce a pulse from a clear configuration of the circuit, the only volt that can be stored at most in any of its discharged capacitors is immediately used to light the corresponding LED. As such, we get again a clear configuration after any such a pulse; hence, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0137.

The following example illustrates Lemma 3.

Example 6.Under the assumptions of Example 5, if we consider the ground field urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0138, then the second assertion of Lemma 3 implies that urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0139. Further, if we consider the finite field urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0140 as the ground field, then urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0141. To see it, it is enough to consider the consecutive pulses associated to the following two products of compatible vectors:

  • Pulse 1: [2e1,e2 + e3] = 2e1 + 2e2.
  • Pulse 2: [e2,e1] = e3.

With the first pulse, two volts are stored in each one of the capacitors C1 and C2. Immediately after, since the final button of the LED circuit is considered to be switched on, one volt is discharged from each one of these two capacitors to light both LEDs L1 and L2. After this first pulse finishes, both LEDs turn off and exactly one volt is stored in each one of the mentioned capacitors. Then, with the second pulse, a volt is stored in the capacitor C3. Immediately after, one volt is discharged from each one of the three capacitors of the circuit to light simultaneously all its LEDs. urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0142

The following result enables us to focus on a representative for each isomorphism class of the set urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0143 to determine the set of possible luminescence and efficiency levels of the LED circuits urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0144, for any partial quasi-group Q ∈ Qn, any field urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0145, and any n-tuple urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0146.

Theorem 1.Both the luminescence and the efficiency level of LED circuits based on partial quasi-group rings constitute isomorphism invariants of the partial quasi-groups on which such partial algebras are based.

Proof.Let Q = ([n],·) and Q = ([n],∘) be two partial quasi-groups in the set urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0147 that are isomorphic by means of an isomorphism π:[n]→[n]. Let urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0148 be a field and r = (r1,…,rn) be a tuple in urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0149 so that ri > 0, for all i ∈ [n]. From the proof of Proposition 1, we are interested in the study of both LED circuits urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0150 and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0151, where r = (rπ(1),…,π(n)).

Let {e1,…,en} and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0152 be the respective natural bases of the partial quasi-group rings urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0153 and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0154. Concerning the luminescence of both circuits, suppose that urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0155. The proof of Lemma 1 involves the existence of two compatible vectors v1 and v2 in urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0156, a subset I = {i1,…,il}⊆[n] and a subset urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0157 such that urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0158. Let urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0159 be the isomorphism that is defined as in the proof of Proposition 1. Then, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0160 and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0161 are two compatible vectors in urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0162 such that urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0163; hence, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0164. A similar reasoning implies that urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0165; hence, the luminescence of both circuits coincide.

Now, concerning the efficiency level of both circuits, if urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0166 is known, then either there exists a series of sequential pulses producing the lighting of all its LEDs (if it is positive) or such a lighting is not possible at all (if otherwise). In the first case, it is enough to consider exactly the same sequential pulses for the circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0167 once a convenient relabeling of devices is done in a similar way to that one described in the proof of Proposition 1. Finally, to deal with the second case, suppose that urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0168. According to the first exposed case, the efficiency level of the circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0169 should coincide with that one of the circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0170, which is not possible because, from the hypothesis, urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0171.

To illustrate the characterization of isomorphism classes of quasi-groups within the set urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0172 by means of their corresponding luminescence and efficiency level, we focus on the case n = 2. From the known 20 isomorphism classes of partial quasi-groups of order two,42 the following partial Latin squares constitute representative multiplication tables of the five isomorphism classes of the set urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0173.

Table 1 shows the luminescence and efficiency level of these five isomorphism classes. All the exposed values are easily checked.

Table 1. Luminescence and efficiency level of partial quasi-groups in the set urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0174
Q urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0175 urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0176
L1 1 1
L2 1 1
L3 1 1
L4 1 0
L5 1 0

4 A LIGHT SWITCHING GAME

We introduce here a light switching game urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0177 that is based on a given LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0178, with urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0179. The outline of the game is described as follows.
  • Requirement: A LED circuit urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0180 having a clear configuration.
  • Description of a game turn: A pulse within the circuit is produced by the player.
  • Goal: To light all the LEDs of the circuit.
As such, the game urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0181 is solvable (that is, a winning strategy exists) if and only if urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0182. In what follows, we study the solvability of the game by focusing on the assumptions described in the second assertion of Lemma 3. That is, we consider the particular case in which urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0183 and urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0184. According to that result, the game urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0185 is solvable if and only if
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0186(2)
Let us indicate how Condition 2 can be dealt with from an algebraic point of view. To this end, let {e1,…,en} be the natural basis of the partial quasi-group ring urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0187. Similarly to the reasoning exposed in Example 5, let us consider the following two generic compatible vectors in urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0188.
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0189
where {a1,…,an,b1,…,bn} constitutes a set of 2n parameters to be determined to get the required Condition 2. In particular, the compatibility of both vectors v1 and v2 implies that
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0190(3)
Now, since the product of both vectors v1 and v2 is
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0191
the required Condition 2 implies that
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0192(4)

The feasibility of both Conditions 3 and 4 is therefore a necessary and sufficient condition to ensure the solvability of our game. Moreover, the number of 2n-tuples (a1,…,an,b1,…,bn) satisfying both Conditions 3 and 4 constituting the number of ways in which the game urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0193 can be solved. Let us illustrate these facts with an example.

Example 7.Let urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0194 be the partial quasi-group having the following partial Latin square as multiplication table:

According to the exposed remarks, the number of solutions of the game urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0195 coincides with the set of tuples urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0196 that satisfies the following system of equations

urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0197
It can be checked that there exist three such tuples, ie,
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0198
They correspond respectively to the following products of compatible vectors in the partial quasi-group ring urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0199:
urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0200
Each one of these three products gives us a way in which the game urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0201 can be solved by means of only one pulse. urn:x-wiley:cmm4:media:cmm41019:cmm41019-math-0202

5 CONCLUSION AND FURTHER WORK

In this paper, we have introduced a design of LED circuits whose working is uniquely described by a given partial quasi-group ring. Two new isomorphism invariants of partial quasi-groups having only empty cells in the main diagonal of their multiplication tables have also been introduced, which make easier their possible distribution into isomorphism classes.

Even if some preliminary results have been exposed about the effect that known algebraic aspects have in the designed circuits, much further work is required to unlock the potential behind our proposal.

The light switching game described in Section 4 has been implemented into an interactive and dynamical worksheet in the open source GEOGEBRA.46 This is available online in the official repository of this software, at the address https://www.geogebra.org/m/VKMNFY68.

Biographies

  • biography image

    Raúl M. Falcón PhD, is an associate professor with Universidad de Sevilla, Seville, Spain. He received the PhD degree in mathematics from Universidad de Sevilla in 2005. His research interests include the study of Latin squares and related structures and the classification of finite-dimensional algebras into isotopism classes.

  • biography image

    Juan Núñez PhD, is a tenured professor with Universidad de Sevilla, Seville, Spain. He received the PhD degree in mathematics from Universidad de Sevilla in 1991. His research interests include the study of Lie groups and algebras, discrete mathematics, and history and divulgation of mathematics.

    The full text of this article hosted at iucr.org is unavailable due to technical difficulties.