US5355509A - Modular self-programmer - Google Patents

Modular self-programmer Download PDF

Info

Publication number
US5355509A
US5355509A US07/968,338 US96833892A US5355509A US 5355509 A US5355509 A US 5355509A US 96833892 A US96833892 A US 96833892A US 5355509 A US5355509 A US 5355509A
Authority
US
United States
Prior art keywords
input
signal
output
input signals
processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
US07/968,338
Inventor
James T. Beran
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to US07/968,338 priority Critical patent/US5355509A/en
Priority to US08/021,258 priority patent/US5530867A/en
Application granted granted Critical
Publication of US5355509A publication Critical patent/US5355509A/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/02Digital function generators
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/588Random number generators, i.e. based on natural stochastic processes

Definitions

  • the present invention relates to a machine which programs its own operation. More specifically, the invention relates to a self-programmer which can be joined as a modular unit to other self-programmers, to provide a more complex self-programmer.
  • the present invention provides a generalized self-programmer which may be provided in modular form, with modules capable of being combined to form a more complex self-programmer.
  • a self-programmer includes input circuitry which receives input signals.
  • Expectation circuitry provides an expectation signal indicating at least one of the possible input signals, and the expectation signal is compared with the input signal by comparing circuitry. If the input signal is indicated by the expectation signal, the comparing circuitry provides a comparison signal.
  • Generating circuitry receives the input signals and provides output signals in response, and the comparison signal causes at least part of the output signals to be stored in program storing circuitry.
  • a method of self-programming similarly includes providing an expectation signal, receiving a sequence of input signals, and comparing the input signals with the expectation signal. If the expectation signal indicates a received input signal, a comparison signal is provided. Meanwhile, a sequence of output signals is generated in response to the input signals, and the comparison signal causes data corresponding to at least part of the output signal sequence to be stored.
  • Each output signal may be stored with a preceding input signal and an expected input signal as a step in a series. If the expected input signal indicates the input signal received after the output signal is provided, then the next step in the series is applied. If not, the expected input signal may be modified, and a further test may be performed to determine whether the input signal received is one of the preceding input signals, which may be used to begin a new sequence. When appropriate, a random output signal my be provided to provide trial and error self-programming.
  • a master programmer is connected to one or more servant programmers.
  • the outputs from the master serve as the expectation signals for the servants.
  • the comparison signals from the servants serve as input signals for the master. The servants are thus controlled by the master.
  • FIG. 1 is a block diagram showing the relation between a self-programmer and its environment.
  • FIG. 2 is a block diagram showing the major functional components of a self-programmer according to the present invention.
  • FIG. 3 is a schematic digital circuit which forms one embodiment of the self-programmer of FIG. 2.
  • FIG. 4 is a schematic digital circuit forming another embodiment of the self-programmer of FIG. 2.
  • FIG. 5 is a self-programing flow chart for the circuit of FIG. 4.
  • FIG. 6 is a schematic circuit diagram of a modular self-programmer
  • FIG. 7 is a schematic drawing of data entry modification according to the invention.
  • FIG. 1 shows a self-programmer in its environment
  • FIG. 2 shows the inner functional components of a self-programmer according to the invention.
  • Self-programmer 10 interacts with system 20 by providing outputs and receiving inputs.
  • system 20 is shown as a discrete component, it need not be a single component, but could be any environment with which self-programmer 10 could interact.
  • This relationship is shown in phantom in FIG. 1 as phantom program 50, and my be thought of as a program which, if executed by self-programmer 10, would result in a desired input or series of inputs from system 20.
  • Input circuitry 40 receives a sequence of input signals from system 20 and provides them to generating circuitry 50 and comparing circuitry 60.
  • Expectation circuitry 70 provides an expectation signal, indicating at least one of the possible input signals.
  • Comparing circuitry 60 compares the expectation signal with the input signals, and provides a comparison signal when the input signal is one of those indicated by the expectation signal.
  • the generating circuitry 50 is generating a sequence of output signals in response to the input signals. When the comparison signal is provided, at least part of this sequence of output signals is stored by program storage circuitry 80.
  • FIG. 3 illustrates a simple digital circuit 100, including the basic functional components of FIG. 2.
  • Input latch 104 receives the input signals which, in this simple case, are the outputs.
  • Inverter 105 which may include a delay, inverts the input signal to provide the output signal.
  • AND gates 106a and 106b also receive the input signal and, when it is the same as the value stored in goal latch 107, provides a comparison signal through OR gates 106c and AND gate 106d to flip-flop 108, which serves to store the output signal which produced the desired input signal.
  • AND gate 106d will be off, holding flip-flop 108 stable, but when the comparison signal occurs, AND gate 106d will temporarily be on, clocking flip-flop 108 to store the output from inverter 105. Inverter 109a and delay element 109b will then turn off AND gate 106d, to complete the storing process.
  • the system is a direct connection of output to input.
  • the present invention is applicable, however, to far more complicated systems and can be used to provide self-programmers which interact with such systems to produce desired results.
  • the simple self-programmer 100 of FIG. 3 is digital, the present invention would be equally applicable to analog embodiments, except that the output of comparing circuitry 60, as in FIG. 2, must be a digital value, indicating that the input signal received fits within the goal defined by the expectation signal.
  • the preferred embodiments described below, however, are digital except as otherwise noted.
  • FIG. 4 shows a more detailed embodiment of a self-programmer 110 centered around a microprocessor or other appropriate central processing unit (CPU) 120.
  • FIG. 5 is a flow chart of a program which CPU 120 could execute to provide a self-programmer according to the present invention.
  • CPU 120 receives inputs from and provides outputs to a system through system input/output buffer 140, which may be a conventional input/output device serving 120.
  • Input/output buffer 140 may be connected to any appropriate input and output devices, whether mechanical, electrical, or other, provided that the relationship between the outputs and the inputs is within the ability of self-programmer 110 to discover.
  • CPU 120 is also connected to goal input 160, from which it receives inputs, indicating the inputs from buffer 140 which are expected.
  • Goal input 160 may be a passive input or my be an inter-active input.
  • CPU 120 is also connected to memory 180, which is shown as an addressable memory space. If CPU 120 is a microprocessor, operating program 182 will typically be stored in a PROM, and will follow a flow chart like that in FIG. 5, discussed below. Registers 184 are provided for temporary storage of values such as the goal, the input, the output, or a random number.
  • Output stack 186 is a memory which stores the outputs provided to the system in sequence, together with other appropriate data, such as the input expected in response to each output.
  • RAM 188 stores the data used by CPU 120 in generating outputs, and hard memory 190 may also be provided, such as a disk drive, for storing a large quantity of such data. In general, such data will be referred to herein as experience and the experience in RAM may be thought of as the relevant experience, while the contents of output stack 186 may be thought of as current experience.
  • FIG. 5 shows how CPU 120 may operate in self-programmer 110.
  • the flow chart of FIG. 5 is merely illustrative of a sequence which provides the functions shown in FIG. 2. Many other sequences could be developed, which would result in self-programming of the type shown in FIG. 2. The sequence of FIG. 5 is relatively straightforward, however, yet versatile.
  • step 202 CPU 120 initializes, taking whatever steps are necessary to begin execution of the operating program 182. This may involve setting an instruction register which is used to address operating program 182. Also registers 184 my be initially set to appropriate values, and output stack 186 may similarly be cleared.
  • CPU 120 proceeds to read the input from goal input in step 204, storing the goal in the goal register.
  • the goal could be a sequence of goals, so that a goal stack or other sequential memory could be provided for storage of the goal sequence.
  • Each goal would require a similar sequence of subsequent steps until met, after which the next goal would be sought.
  • step 206 the inputs from the system are read from buffer 140, and stored in the input buffer. This step corresponds to input circuitry 40 in FIG. 1, and could include any appropriate processing of input data to make it amenable to storage.
  • self-programmer 110 includes hard memory 180
  • experience from hard memory 190 may be loaded into RAM 188 during one of steps 202, 204 or 206. If experience is limited, it may all be loaded into RAM 188 during initialization. If experience is greater, but manageable for a specific goal, may be loaded after the goal is read in step 204. If even greater, it may be loaded for a specific input after the input is read in step 204.
  • step 208 When the goal and input have both been read, they are compared in step 208.
  • This step corresponds to the comparing circuitry 60 of FIG. 2.
  • the comparison may be a bit by bit comparison or any other comparison which produces an affirmative outcome only when the input is one of the inputs indicated by the goal. Numerous comparison techniques are possible, of course, and the particular comparison technique used could be an algorithm suited to the specific input data. If the input is two-dimensional, techniques such as edge detection and the like may be useful.
  • Step 210 corresponds to program storing circuitry 80 in FIG. 2.
  • the manner in which this experience is stored will depend somewhat on how it is to be retrieved for loading into RAM 188.
  • each data entry may include three fields, one for the output itself, a second for the input which preceded it, and a third for the resulting input.
  • a directory may be generated indicating the start of a sequence of data entries which attained a specified goal.
  • Another directory may be generated for assessing each separate data entry according to the second field, but also indicating the starting address of the sequence in which that input appears. In this way, selected data entry sequences may be loaded into RAM 188, based on the goal attained or on a particular input.
  • the contents of the output stack 186 must include all information to be stored during step 210.
  • each data entry within the sequence may include an indication of its number in the sequence if the sequence is not stored in a contiguous block of address space.
  • step 212 When storage is completed, the program of FIG. 4 ends at step 212.
  • the goal may be a sequence of inputs.
  • step 212 may include returning to step 204 to read and store the next goal.
  • step 208 results in a negative outcome
  • CPU 120 proceeds to generate the output by a sequence of steps which correspond to the generating circuitry of FIG. 2.
  • the first of these steps in the particular embodiment of FIG. 5 is to compare the input with an expected input, indicating at least one of the possible inputs in step 214.
  • this expected input could be stored with the output from which it results, as a part of a sequence which once led successfully to a particular goal. Therefore, the expected input may be retrieved along with the output and may be stored in an appropriate one of registers 184, pending the reading of the input in step 206 and the comparison in step 214.
  • step 214 If the comparison in step 214 shows that the input is one of the inputs indicated by the expected input, then CPU 120 proceeds to the next step in the sequence of steps, by loading the output register, in step 216. Then in step 218, the output is applied to the system through buffer 140 and stored in the output stack 186. This storing process cannot be completed, of course, until the resulting input is received in step 206, and may then be stored as the expected input following the output as well as the preceding input for the next outputs.
  • step 214 If the comparison in step 214, on the other hand, shows that the input is not expected, CPU 120 my proceed to another test to determine whether the resulting input my be treated as part of a new sequence, in step 220. This may be done by examining the preceding input directory to determine whether the input appears as a preceding input for an output step in a sequence which once led successfully to the goal sought. If so, that output step is loaded to the output register in step 222, and CPU 120 proceeds to step 218 as above.
  • step 220 indicates, on the other hand, that no such new sequence is in experience
  • CPU 120 proceeds to generate a random number and to load the random number into the output register, in step 224. Once again, CPU 120 will then proceed to step 218.
  • This random number capability enables self-programmer 110 to perform trial and error programming when faced with a new situation or, by a suitable modification of step 220, with a repeated failure to progress toward the goal from a specific input.
  • step 218 should also include storing the preceding input in output stack 186. Then, in the next occurrence of step 206, the next input should also be stored as the expected input corresponding to the random number output in output stack 186. The expected input should not, however, be compared in step 214, which should be skipped, proceeding instead to step 220.
  • Step 220 in addition to a test, may include a suitable modification of an expected input which failed to compare with the received input in step 214.
  • FIG. 6 illustrates one technique by which this could be done.
  • the first line of FIG. 6 shows an example of an input received by CPU 120 in response to the output shown within a data entry on the second line of FIG. 6.
  • the data entry also includes a preceding input and an expected input.
  • the expected input as shown, has a series of locations, each of which my take any of three values, "0" and "1" indicating binary zero and one received and "X" indicating that either zero or one may be received.
  • the second bit of the expected input is modified to an "X", as shown in the third line of FIG. 6.
  • the expected input will gradually indicate a larger group of possible inputs which may occur in response to the output, increasing the likelihood that the comparison in step 214 will have an affirmative outcome, causing the next step of the sequence to be attempted.
  • FIGS. 4 and 5 are presently preferred because it may easily be implemented with current technology, we turn now to additional embodiments which promise further improvement in self-programming.
  • FIG. 7 shows a modular embodiment made possible by the present invention.
  • Modular self-programmer 300 includes master self-programmer and servant self-programmers 320 and 330. Rather than providing outputs directly to and receiving inputs directly from the system, master 310 provides outputs from terminals 0 to the goal inputs G of servants 320 and 330 and receives inputs at terminals I from servants 320 and 330, indicating the occurrence of a comparison signal. In other words, when a goal specified by master 310 is attained by a servant 320 or 330, that servant provides its comparison signal to master 310, as an input. In this manner, master 310 could control one or more servant self-programmers and master 310 may in turn receive its goals through a goal input G.
  • FIG. 7 Each self-programmer of FIG. 7 is shown simply as a box, but the internal structure includes the functional components of FIG. 2. These components could be provided by a CPU-based embodiment like FIG. 4 or by any other appropriate embodiment of the invention.
  • FIG. 4 has a single CPU 120 performing both the functions of generating means 50 and comparing means 60 in FIG. 2, those functions could be performed by parallel CPUs, or by parallel analog processors, if appropriate.
  • the entire circuit of FIG. 4 could be provided as a single digital VLSI circuit.
  • FIG. 6 illustrates how an expected state may be defined to include unspecified locations which may take either of two values. Similarly, the goal may be defined with some unspecified locations, so that any of several inputs will result in success. In this manner, it may be possible to accumulate experience from which fully specified goals may be more easily attained.
  • the steps of the flow chart in FIG. 5 are relatively simple, and each could easily be implemented with familiar programming techniques in a straightforward manner.
  • a wide variety of algorithms could be used to increase efficiency or effectiveness, however, all within the skill of the art.
  • the comparison algorithms could be designed to bring out the significant distinguishing features of the input data.
  • the output generating algorithms could be designed to cause the self-programmer to wait for an input after each output by providing null outputs for a given period, for example.
  • the present invention may have many applications.
  • the motions of a robot may be self-programmed according to the invention. Speech recognition and synthesis could similarly be self-programmed. Numerous other possible applications could easily be identified.

Abstract

A self-programing technique includes receiving a sequence of input signals and comparing each input signal with an expectation signal. A sequence of output signals is generated from the input signals, and at least part of the output signal sequence is stored when the expectation signal compares favorably with the input signal. Modular units performing this technique may be connected as a master with one or more servants. The master provides the expectation signals for the servants as its output and receives their signals indicating their comparison outcomes as its input. Within each programmer, a random number may be generated as an output when the input signal received is not expected and has not previously been stored as an input preceding an output signal. The random number output provides trial and error capabilities.

Description

This is a continuation of application Ser. No. 07/850,214, filed Mar. 12, 1992, now U.S. Pat. No. 5,161,232, which is in turn a continuation of application Ser. No. 06/776,819, filed Sep. 17, 1985, now abandoned.
BACKGROUND OF THE INVENTION
The present invention relates to a machine which programs its own operation. More specifically, the invention relates to a self-programmer which can be joined as a modular unit to other self-programmers, to provide a more complex self-programmer.
As programmable machines, typically built around microprocessors, have become more common, the task of programming them has become an increasingly significant factor in their production. Some recent studies recognize that it is possible, in principle, to provide a machine which is self-programming. Some proposals approach the problem from the point of view of a specific programming task, such as the movement of a robot.
It would be advantageous to have a more generally useful self-programmer, capable of approaching a wide variety of programming tasks, with minimal modification. It would further be advantageous to have a modular self-programmer capable of being combined with other identical modules to form a more complex self-programmer.
SUMMARY OF THE INVENTION
The present invention provides a generalized self-programmer which may be provided in modular form, with modules capable of being combined to form a more complex self-programmer.
A self-programmer, according to the present invention, includes input circuitry which receives input signals. Expectation circuitry provides an expectation signal indicating at least one of the possible input signals, and the expectation signal is compared with the input signal by comparing circuitry. If the input signal is indicated by the expectation signal, the comparing circuitry provides a comparison signal. Generating circuitry receives the input signals and provides output signals in response, and the comparison signal causes at least part of the output signals to be stored in program storing circuitry.
A method of self-programming, according to the invention, similarly includes providing an expectation signal, receiving a sequence of input signals, and comparing the input signals with the expectation signal. If the expectation signal indicates a received input signal, a comparison signal is provided. Meanwhile, a sequence of output signals is generated in response to the input signals, and the comparison signal causes data corresponding to at least part of the output signal sequence to be stored.
Each output signal may be stored with a preceding input signal and an expected input signal as a step in a series. If the expected input signal indicates the input signal received after the output signal is provided, then the next step in the series is applied. If not, the expected input signal may be modified, and a further test may be performed to determine whether the input signal received is one of the preceding input signals, which may be used to begin a new sequence. When appropriate, a random output signal my be provided to provide trial and error self-programming.
In a modular self-programmer, according to the invention, a master programmer is connected to one or more servant programmers. The outputs from the master serve as the expectation signals for the servants. The comparison signals from the servants, on the other hand, serve as input signals for the master. The servants are thus controlled by the master.
These and other objects, features and advantages of the invention will become more fully apparent from the following description together with the drawings and the appended claims.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram showing the relation between a self-programmer and its environment.
FIG. 2 is a block diagram showing the major functional components of a self-programmer according to the present invention.
FIG. 3 is a schematic digital circuit which forms one embodiment of the self-programmer of FIG. 2.
FIG. 4 is a schematic digital circuit forming another embodiment of the self-programmer of FIG. 2.
FIG. 5 is a self-programing flow chart for the circuit of FIG. 4.
FIG. 6 is a schematic circuit diagram of a modular self-programmer
FIG. 7 is a schematic drawing of data entry modification according to the invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
I. Basic Embodiment
The basic embodiment of a self-programmer according to the present invention can be understood from FIGS. 1 and 2. FIG. 1 shows a self-programmer in its environment, while FIG. 2 shows the inner functional components of a self-programmer according to the invention.
Self-programmer 10 interacts with system 20 by providing outputs and receiving inputs. Although system 20 is shown as a discrete component, it need not be a single component, but could be any environment with which self-programmer 10 could interact. In order for self-programmer 10 to operate effectively, however, there must be a relationship between the outputs provided to system 10 and the inputs received from it. This relationship is shown in phantom in FIG. 1 as phantom program 50, and my be thought of as a program which, if executed by self-programmer 10, would result in a desired input or series of inputs from system 20.
The present invention is based in part on the discovery that a combination of components, as shown in FIG. 2, will provide a self-programmer 10 as described above. Input circuitry 40 receives a sequence of input signals from system 20 and provides them to generating circuitry 50 and comparing circuitry 60. Expectation circuitry 70 provides an expectation signal, indicating at least one of the possible input signals. Comparing circuitry 60 compares the expectation signal with the input signals, and provides a comparison signal when the input signal is one of those indicated by the expectation signal. Meanwhile, the generating circuitry 50 is generating a sequence of output signals in response to the input signals. When the comparison signal is provided, at least part of this sequence of output signals is stored by program storage circuitry 80.
As a result of the combination of FIG. 2, a sequence of outputs will be stored, which succeeded in producing an input signal indicated by the expectation signal from expectation circuitry 70. This result provides one basic type of self-programming.
FIG. 3 illustrates a simple digital circuit 100, including the basic functional components of FIG. 2. Input latch 104 receives the input signals which, in this simple case, are the outputs. Inverter 105, which may include a delay, inverts the input signal to provide the output signal. AND gates 106a and 106b also receive the input signal and, when it is the same as the value stored in goal latch 107, provides a comparison signal through OR gates 106c and AND gate 106d to flip-flop 108, which serves to store the output signal which produced the desired input signal. As long as no comparison signal is provided, the AND gate 106d will be off, holding flip-flop 108 stable, but when the comparison signal occurs, AND gate 106d will temporarily be on, clocking flip-flop 108 to store the output from inverter 105. Inverter 109a and delay element 109b will then turn off AND gate 106d, to complete the storing process.
In the simple single-bit example of FIG. 3 the system is a direct connection of output to input. The present invention is applicable, however, to far more complicated systems and can be used to provide self-programmers which interact with such systems to produce desired results. Furthermore, although the simple self-programmer 100 of FIG. 3 is digital, the present invention would be equally applicable to analog embodiments, except that the output of comparing circuitry 60, as in FIG. 2, must be a digital value, indicating that the input signal received fits within the goal defined by the expectation signal. The preferred embodiments described below, however, are digital except as otherwise noted.
II. A detailed embodiment
FIG. 4 shows a more detailed embodiment of a self-programmer 110 centered around a microprocessor or other appropriate central processing unit (CPU) 120. FIG. 5 is a flow chart of a program which CPU 120 could execute to provide a self-programmer according to the present invention.
As shown in FIG. 4, CPU 120 receives inputs from and provides outputs to a system through system input/output buffer 140, which may be a conventional input/output device serving 120. Input/output buffer 140 may be connected to any appropriate input and output devices, whether mechanical, electrical, or other, provided that the relationship between the outputs and the inputs is within the ability of self-programmer 110 to discover.
CPU 120 is also connected to goal input 160, from which it receives inputs, indicating the inputs from buffer 140 which are expected. Goal input 160 may be a passive input or my be an inter-active input.
CPU 120 is also connected to memory 180, which is shown as an addressable memory space. If CPU 120 is a microprocessor, operating program 182 will typically be stored in a PROM, and will follow a flow chart like that in FIG. 5, discussed below. Registers 184 are provided for temporary storage of values such as the goal, the input, the output, or a random number. Output stack 186 is a memory which stores the outputs provided to the system in sequence, together with other appropriate data, such as the input expected in response to each output. RAM 188 stores the data used by CPU 120 in generating outputs, and hard memory 190 may also be provided, such as a disk drive, for storing a large quantity of such data. In general, such data will be referred to herein as experience and the experience in RAM may be thought of as the relevant experience, while the contents of output stack 186 may be thought of as current experience.
FIG. 5 shows how CPU 120 may operate in self-programmer 110. The flow chart of FIG. 5 is merely illustrative of a sequence which provides the functions shown in FIG. 2. Many other sequences could be developed, which would result in self-programming of the type shown in FIG. 2. The sequence of FIG. 5 is relatively straightforward, however, yet versatile.
In step 202, CPU 120 initializes, taking whatever steps are necessary to begin execution of the operating program 182. This may involve setting an instruction register which is used to address operating program 182. Also registers 184 my be initially set to appropriate values, and output stack 186 may similarly be cleared.
When initializing is complete, CPU 120 proceeds to read the input from goal input in step 204, storing the goal in the goal register. Rather than being a single value, the goal could be a sequence of goals, so that a goal stack or other sequential memory could be provided for storage of the goal sequence. Each goal, however, would require a similar sequence of subsequent steps until met, after which the next goal would be sought.
In step 206, the inputs from the system are read from buffer 140, and stored in the input buffer. This step corresponds to input circuitry 40 in FIG. 1, and could include any appropriate processing of input data to make it amenable to storage.
If self-programmer 110 includes hard memory 180, experience from hard memory 190 may be loaded into RAM 188 during one of steps 202, 204 or 206. If experience is limited, it may all be loaded into RAM 188 during initialization. If experience is greater, but manageable for a specific goal, may be loaded after the goal is read in step 204. If even greater, it may be loaded for a specific input after the input is read in step 204.
When the goal and input have both been read, they are compared in step 208. This step corresponds to the comparing circuitry 60 of FIG. 2. The comparison may be a bit by bit comparison or any other comparison which produces an affirmative outcome only when the input is one of the inputs indicated by the goal. Numerous comparison techniques are possible, of course, and the particular comparison technique used could be an algorithm suited to the specific input data. If the input is two-dimensional, techniques such as edge detection and the like may be useful.
If the input is one of those indicated by the goal, CPU 120 will proceed to store the sequence in the output stack 186 in hard memory 190, in step 210, adding it to the stored body of experience. Step 210 corresponds to program storing circuitry 80 in FIG. 2. The manner in which this experience is stored will depend somewhat on how it is to be retrieved for loading into RAM 188. For example, each data entry may include three fields, one for the output itself, a second for the input which preceded it, and a third for the resulting input. At the time of storage, a directory may be generated indicating the start of a sequence of data entries which attained a specified goal. Another directory may be generated for assessing each separate data entry according to the second field, but also indicating the starting address of the sequence in which that input appears. In this way, selected data entry sequences may be loaded into RAM 188, based on the goal attained or on a particular input. The contents of the output stack 186 must include all information to be stored during step 210.
Although any suitable storage format could be used, it is presently preferred that the steps of a successful sequence be stored in sequence so that the entire sequence my be treated as a block. It my be preceded by a header, indicating the number of steps and including a directory of preceding inputs in the second field. Each data entry within the sequence may include an indication of its number in the sequence if the sequence is not stored in a contiguous block of address space.
When storage is completed, the program of FIG. 4 ends at step 212. As noted above, however, the goal may be a sequence of inputs. In which case, step 212 may include returning to step 204 to read and store the next goal.
If, on the other hand, step 208 results in a negative outcome, CPU 120 proceeds to generate the output by a sequence of steps which correspond to the generating circuitry of FIG. 2. The first of these steps in the particular embodiment of FIG. 5 is to compare the input with an expected input, indicating at least one of the possible inputs in step 214. As noted above, this expected input could be stored with the output from which it results, as a part of a sequence which once led successfully to a particular goal. Therefore, the expected input may be retrieved along with the output and may be stored in an appropriate one of registers 184, pending the reading of the input in step 206 and the comparison in step 214.
If the comparison in step 214 shows that the input is one of the inputs indicated by the expected input, then CPU 120 proceeds to the next step in the sequence of steps, by loading the output register, in step 216. Then in step 218, the output is applied to the system through buffer 140 and stored in the output stack 186. This storing process cannot be completed, of course, until the resulting input is received in step 206, and may then be stored as the expected input following the output as well as the preceding input for the next outputs.
If the comparison in step 214, on the other hand, shows that the input is not expected, CPU 120 my proceed to another test to determine whether the resulting input my be treated as part of a new sequence, in step 220. This may be done by examining the preceding input directory to determine whether the input appears as a preceding input for an output step in a sequence which once led successfully to the goal sought. If so, that output step is loaded to the output register in step 222, and CPU 120 proceeds to step 218 as above.
If step 220 indicates, on the other hand, that no such new sequence is in experience, CPU 120 proceeds to generate a random number and to load the random number into the output register, in step 224. Once again, CPU 120 will then proceed to step 218. This random number capability enables self-programmer 110 to perform trial and error programming when faced with a new situation or, by a suitable modification of step 220, with a repeated failure to progress toward the goal from a specific input.
If a random number has been provided as an input, step 218 should also include storing the preceding input in output stack 186. Then, in the next occurrence of step 206, the next input should also be stored as the expected input corresponding to the random number output in output stack 186. The expected input should not, however, be compared in step 214, which should be skipped, proceeding instead to step 220.
Step 220, in addition to a test, may include a suitable modification of an expected input which failed to compare with the received input in step 214. FIG. 6 illustrates one technique by which this could be done. The first line of FIG. 6 shows an example of an input received by CPU 120 in response to the output shown within a data entry on the second line of FIG. 6. The data entry also includes a preceding input and an expected input. The expected input, as shown, has a series of locations, each of which my take any of three values, "0" and "1" indicating binary zero and one received and "X" indicating that either zero or one may be received. Since the input in the first line differs from the expected input at the second bit,-the second bit of the expected input is modified to an "X", as shown in the third line of FIG. 6. In this manner, the expected input will gradually indicate a larger group of possible inputs which may occur in response to the output, increasing the likelihood that the comparison in step 214 will have an affirmative outcome, causing the next step of the sequence to be attempted.
Although the embodiment of FIGS. 4 and 5 is presently preferred because it may easily be implemented with current technology, we turn now to additional embodiments which promise further improvement in self-programming.
III. Modular Embodiment
FIG. 7 shows a modular embodiment made possible by the present invention. Modular self-programmer 300 includes master self-programmer and servant self- programmers 320 and 330. Rather than providing outputs directly to and receiving inputs directly from the system, master 310 provides outputs from terminals 0 to the goal inputs G of servants 320 and 330 and receives inputs at terminals I from servants 320 and 330, indicating the occurrence of a comparison signal. In other words, when a goal specified by master 310 is attained by a servant 320 or 330, that servant provides its comparison signal to master 310, as an input. In this manner, master 310 could control one or more servant self-programmers and master 310 may in turn receive its goals through a goal input G.
Each self-programmer of FIG. 7 is shown simply as a box, but the internal structure includes the functional components of FIG. 2. These components could be provided by a CPU-based embodiment like FIG. 4 or by any other appropriate embodiment of the invention.
IV. Miscellaneous
Although the embodiment of FIG. 4 has a single CPU 120 performing both the functions of generating means 50 and comparing means 60 in FIG. 2, those functions could be performed by parallel CPUs, or by parallel analog processors, if appropriate. The entire circuit of FIG. 4 could be provided as a single digital VLSI circuit.
FIG. 6 illustrates how an expected state may be defined to include unspecified locations which may take either of two values. Similarly, the goal may be defined with some unspecified locations, so that any of several inputs will result in success. In this manner, it may be possible to accumulate experience from which fully specified goals may be more easily attained.
The steps of the flow chart in FIG. 5 are relatively simple, and each could easily be implemented with familiar programming techniques in a straightforward manner. A wide variety of algorithms could be used to increase efficiency or effectiveness, however, all within the skill of the art. The comparison algorithms, for example, could be designed to bring out the significant distinguishing features of the input data. Also, the output generating algorithms could be designed to cause the self-programmer to wait for an input after each output by providing null outputs for a given period, for example.
The present invention may have many applications. The motions of a robot may be self-programmed according to the invention. Speech recognition and synthesis could similarly be self-programmed. Numerous other possible applications could easily be identified.
Although the present invention has been disclosed in connection with a plurality of embodiments thereof, many other variations will now be apparent to those of ordinary skill in the art. Therefore, the invention is not limited by the disclosed embodiments, but only by the appended claims.

Claims (20)

I claim:
1. An article of manufacture for use in a machine that includes a processor; the article of manufacture comprising:
memory that is accessible by the processor when the article of manufacture is used in the machine;
a program stored in the memory; the program being executable by the processor; the processor, in executing the program:
receiving input signals, each input signal having a value that is one of a set of possible values input signals can have;
providing a signal indicating at least one of said possible value input signals can have;
comparing said input signals with said signal indicating at least one of the possible values input signals can have and providing a comparison signal when one of said compared input signals has one of the values that is indicated by the indicating signal;
providing a sequence of output signals in response to said input signals, the sequence including two or more steps; and
storing data indicating at least two of said steps of the sequence of output signals in response to the comparison signal.
2. The article of manufacture of claim 1 in which the memory is a PROM.
3. A machine comprising:
memory;
a processor connected for accessing the memory;
a program stored in the memory; the program being executable by the processor; the processor, in executing the program;
receiving input signals, each input signal having a value that is one of a set of possible values input signals can have;
providing a signal indicating at least one of said possible values input signals can have;
comparing said input signals with said signal indicating at least one of the possible values input signals can have and providing a comparison signal when one of the compared input signals has one of the values that is indicated by the indicating signal;
providing a sequence of output signals in response to said input signals, the sequence including two or more steps; and
storing data indicating at least two of said steps of the sequence of output signals in response to the comparison signal.
4. The machine of claim 3 in which the memory comprises a PROM; the program being stored in the PROM.
5. The machine of claim 3 in which the processor is a microprocessor.
6. The machine of claim 3 in which the memory comprises two or more registers.
7. The machine of claim 3 in which the memory comprises a stack.
8. The machine of claim 3 in which the memory comprises RAM.
9. The machine of claim 3 in which the memory comprises hard memory.
10. The machine of claim 3, further comprising goal input circuitry connected to the processor; the processor receiving the signal indicating at least one of the possible values input signals can have from the goal input circuitry.
11. The machine of claim 3, further comprising an input/output buffer connected to the processor; the processor receiving the input signals from the input/output buffer and providing the output signals to the input/output buffer.
12. An article of manufacture for use in a machine that includes a processor; the article of manufacture comprising:
memory that is accessible by the processor when the article of manufacture is used in the machine;
a program stored in the memory; the program being executable by the processor; the processor, in executing the program;
receiving a sequence of input signals, each input signal having a value that is one of a set of possible values input signals can have;
determining whether each of said input signals is indicated by an indicating signal indicating at least one of said possible values input signals can have;
for a first one of said input signals that has a value that is not indicated by said indicating signal, providing an output signal, the output signal being a step in a sequence of two or more output signals; and
for a second one of said input signals that has a value that is indicated by said indicating signal, storing at least two of said steps of the sequence of output signals.
13. The article of manufacture of claim 12 in which the memory is a PROM
14. A machine comprising:
memory;
a processor connected for accessing the memory;
a program stored in the memory; the program being executable by the processor; the processor, in executing the program:
receiving a sequence of input signals, each input signal having a value that is one of a set of possible values input signals can have;
determining whether each of said input signals is indicated by an indicating signal indicating at least one of said possible values input signals can have;
for a first one of said input signals that has a value that is not indicated by said indicating signal, providing an output signal, the output signal being a step in a sequence of two or more output signals; and
for a second one of said input signals that has a value that is indicated by said indicating signal, storing at least two of said steps of the sequence of output signals.
15. The machine of claim 14 in which the memory comprises a PROM; the program being stored in the PROM.
16. The machine of claim 14 in which the processor is a microprocessor.
17. The machine of claim 14 in which the memory comprises a stack.
18. The machine of claim 14 in which the memory comprises RAM.
19. The machine of claim 14 in which the memory comprises hard memory; the processor storing the at least two of the steps of the sequence of output signals in the hard memory.
20. The machine of claim 14, further comprising an input/output buffer connected to the processor; the processor receiving the input signals from the input/output buffer and providing the output signals to the input/output buffer.
US07/968,338 1985-09-17 1992-10-29 Modular self-programmer Expired - Fee Related US5355509A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US07/968,338 US5355509A (en) 1985-09-17 1992-10-29 Modular self-programmer
US08/021,258 US5530867A (en) 1985-09-17 1993-02-22 Software for self-programming

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US77681985A 1985-09-17 1985-09-17
US07/850,214 US5161232A (en) 1985-09-17 1992-03-12 Modular self-programmer
US07/968,338 US5355509A (en) 1985-09-17 1992-10-29 Modular self-programmer

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US07/850,214 Continuation US5161232A (en) 1985-09-17 1992-03-12 Modular self-programmer

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US08/021,258 Continuation-In-Part US5530867A (en) 1985-09-17 1993-02-22 Software for self-programming

Publications (1)

Publication Number Publication Date
US5355509A true US5355509A (en) 1994-10-11

Family

ID=27119243

Family Applications (2)

Application Number Title Priority Date Filing Date
US07/850,214 Expired - Fee Related US5161232A (en) 1985-09-17 1992-03-12 Modular self-programmer
US07/968,338 Expired - Fee Related US5355509A (en) 1985-09-17 1992-10-29 Modular self-programmer

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US07/850,214 Expired - Fee Related US5161232A (en) 1985-09-17 1992-03-12 Modular self-programmer

Country Status (1)

Country Link
US (2) US5161232A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5530867A (en) * 1985-09-17 1996-06-25 Beran; James T. Software for self-programming
US5764655A (en) * 1997-07-02 1998-06-09 International Business Machines Corporation Built in self test with memory
US6108798A (en) * 1997-07-02 2000-08-22 International Business Machines Corporation Self programmed built in self test
US6185712B1 (en) 1998-07-02 2001-02-06 International Business Machines Corporation Chip performance optimization with self programmed built in self test
US6230290B1 (en) 1997-07-02 2001-05-08 International Business Machines Corporation Method of self programmed built in self test
US20170127526A1 (en) * 2015-10-30 2017-05-04 Juki Corporation Managing apparatus

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5161232A (en) * 1985-09-17 1992-11-03 Beran James T Modular self-programmer
US5414865A (en) * 1985-09-17 1995-05-09 Beran; James T. Self-programming with limited sequential memory capacity
US5276839A (en) * 1991-03-07 1994-01-04 United States Of America As Represented By The Secretary Of The Air Force System for programming EEPROM with data loaded in ROM by sending switch signal to isolate EEPROM from host system
US6661237B2 (en) * 2001-09-26 2003-12-09 Northrop Grumman Corporation Smart AWA
US7368919B2 (en) 2004-09-02 2008-05-06 Ziota Technology Inc. Wireless portable automated harness scanner system and method therefor

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3601811A (en) * 1967-12-18 1971-08-24 Matsushita Electric Ind Co Ltd Learning machine
US3716840A (en) * 1970-06-01 1973-02-13 Texas Instruments Inc Multimodal search
US3924109A (en) * 1974-07-22 1975-12-02 Technology Marketing Inc Automatic circuit card testing system
US4258425A (en) * 1979-03-08 1981-03-24 A. O. Smith Corporation Self-programmed mechanical working apparatus
US4366551A (en) * 1977-06-24 1982-12-28 Holtz Klaus E Associative memory search system
US4384273A (en) * 1981-03-20 1983-05-17 Bell Telephone Laboratories, Incorporated Time warp signal recognition processor for matching signal patterns
US4479241A (en) * 1981-08-06 1984-10-23 Buckley Bruce S Self-organizing circuits for automatic pattern recognition and the like and systems embodying the same
US4484303A (en) * 1979-06-19 1984-11-20 Gould Inc. Programmable controller
US4516202A (en) * 1980-07-31 1985-05-07 Hitachi, Ltd. Interface control system for high speed processing based on comparison of sampled data values to expected values
US4523299A (en) * 1982-09-21 1985-06-11 Xerox Corporation Message transmitting system for reproduction machines and copiers
US4578764A (en) * 1983-03-07 1986-03-25 Zymark Corporation Self-configuring robotic system and method
US4599693A (en) * 1984-01-16 1986-07-08 Itt Corporation Probabilistic learning system
US5161232A (en) * 1985-09-17 1992-11-03 Beran James T Modular self-programmer

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1216343A (en) * 1983-05-02 1987-01-06 Tomohiro Murata Method and apparatus for controlling an operation sequence of a machinery
US4783741A (en) * 1983-08-08 1988-11-08 Bernhard Mitterauer Computer system for simulating reticular formation operation
JPS6062440A (en) * 1983-09-14 1985-04-10 Futaba Corp Position feed-back device
CH655587B (en) * 1983-09-22 1986-04-30
US4697242A (en) * 1984-06-11 1987-09-29 Holland John H Adaptive computing system capable of learning and discovery
US4773028A (en) * 1984-10-01 1988-09-20 Tektronix, Inc. Method and apparatus for improved monitoring and detection of improper device operation

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3601811A (en) * 1967-12-18 1971-08-24 Matsushita Electric Ind Co Ltd Learning machine
US3716840A (en) * 1970-06-01 1973-02-13 Texas Instruments Inc Multimodal search
US3924109A (en) * 1974-07-22 1975-12-02 Technology Marketing Inc Automatic circuit card testing system
US4366551A (en) * 1977-06-24 1982-12-28 Holtz Klaus E Associative memory search system
US4258425A (en) * 1979-03-08 1981-03-24 A. O. Smith Corporation Self-programmed mechanical working apparatus
US4484303A (en) * 1979-06-19 1984-11-20 Gould Inc. Programmable controller
US4516202A (en) * 1980-07-31 1985-05-07 Hitachi, Ltd. Interface control system for high speed processing based on comparison of sampled data values to expected values
US4384273A (en) * 1981-03-20 1983-05-17 Bell Telephone Laboratories, Incorporated Time warp signal recognition processor for matching signal patterns
US4479241A (en) * 1981-08-06 1984-10-23 Buckley Bruce S Self-organizing circuits for automatic pattern recognition and the like and systems embodying the same
US4523299A (en) * 1982-09-21 1985-06-11 Xerox Corporation Message transmitting system for reproduction machines and copiers
US4578764A (en) * 1983-03-07 1986-03-25 Zymark Corporation Self-configuring robotic system and method
US4599693A (en) * 1984-01-16 1986-07-08 Itt Corporation Probabilistic learning system
US5161232A (en) * 1985-09-17 1992-11-03 Beran James T Modular self-programmer

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5530867A (en) * 1985-09-17 1996-06-25 Beran; James T. Software for self-programming
US5764655A (en) * 1997-07-02 1998-06-09 International Business Machines Corporation Built in self test with memory
US6108798A (en) * 1997-07-02 2000-08-22 International Business Machines Corporation Self programmed built in self test
US6230290B1 (en) 1997-07-02 2001-05-08 International Business Machines Corporation Method of self programmed built in self test
US6185712B1 (en) 1998-07-02 2001-02-06 International Business Machines Corporation Chip performance optimization with self programmed built in self test
US20170127526A1 (en) * 2015-10-30 2017-05-04 Juki Corporation Managing apparatus
US20210181715A1 (en) * 2015-10-30 2021-06-17 Juki Corporation Managing apparatus

Also Published As

Publication number Publication date
US5161232A (en) 1992-11-03

Similar Documents

Publication Publication Date Title
EP0623875B1 (en) Multi-processor computer system having process-independent communication register addressing
US4550436A (en) Parallel text matching methods and apparatus
US6219775B1 (en) Massively parallel computer including auxiliary vector processor
US5355509A (en) Modular self-programmer
EP0238090A2 (en) Microcomputer capable of accessing internal memory at a desired variable access time
US4967350A (en) Pipelined vector processor for executing recursive instructions
US4794518A (en) Pipeline control system for an execution section of a pipeline computer with multiple selectable control registers in an address control stage
US5907693A (en) Autonomously cycling data processing architecture
EP0346031B1 (en) Vector data processing apparatus
US5991872A (en) Processor
US4001787A (en) Data processor for pattern recognition and the like
US5542079A (en) Data driven processor for reading data from storage to apply prescribed operation in response to operation updating instruction and updating the contents of the storage
WO1987001837A1 (en) Modular self-programmer
US4899128A (en) Method and apparatus for comparing strings using hash values
US20070220074A1 (en) Sharing of a logic operator having a work register
JPS58178464A (en) Parallel arithmetic processing unit
EP0600583A1 (en) Vector processing device
Stepchenkov et al. Iterator Component Development for Data Redundancy Solution in Data-Flow Architecture
JP3331599B2 (en) Micro program controller
JP2626831B2 (en) Program expansion system computer
Sibai et al. A parallel unification machine
KR20230023762A (en) hardware autoloader
RU2042980C1 (en) Vector accelerator
CN117114140A (en) Packaging method, device, equipment and medium of distributed machine learning algorithm library
Norrie et al. Program structure and architecture for a finite element machine

Legal Events

Date Code Title Description
FPAY Fee payment

Year of fee payment: 4

REMI Maintenance fee reminder mailed
LAPS Lapse for failure to pay maintenance fees
STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20021011