US20030225983A1 - Data memory - Google Patents

Data memory Download PDF

Info

Publication number
US20030225983A1
US20030225983A1 US10/409,437 US40943703A US2003225983A1 US 20030225983 A1 US20030225983 A1 US 20030225983A1 US 40943703 A US40943703 A US 40943703A US 2003225983 A1 US2003225983 A1 US 2003225983A1
Authority
US
United States
Prior art keywords
data memory
stored
address
elements
chained list
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.)
Granted
Application number
US10/409,437
Other versions
US7197621B2 (en
Inventor
Hartmut Habben
Peter Hank
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.)
Morgan Stanley Senior Funding Inc
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
Assigned to KONINKLIJKE PHILIPS ELECTRONICS N.V. reassignment KONINKLIJKE PHILIPS ELECTRONICS N.V. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HABBEN, HARTMUT KARL, HANK, PETER
Publication of US20030225983A1 publication Critical patent/US20030225983A1/en
Application granted granted Critical
Publication of US7197621B2 publication Critical patent/US7197621B2/en
Assigned to NXP B.V. reassignment NXP B.V. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: KONINKLIJKE PHILIPS ELECTRONICS N.V.
Assigned to MORGAN STANLEY SENIOR FUNDING, INC. reassignment MORGAN STANLEY SENIOR FUNDING, INC. SECURITY AGREEMENT SUPPLEMENT Assignors: NXP B.V.
Assigned to MORGAN STANLEY SENIOR FUNDING, INC. reassignment MORGAN STANLEY SENIOR FUNDING, INC. CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12092129 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Assignors: NXP B.V.
Assigned to NXP B.V. reassignment NXP B.V. PATENT RELEASE Assignors: MORGAN STANLEY SENIOR FUNDING, INC.
Assigned to MORGAN STANLEY SENIOR FUNDING, INC. reassignment MORGAN STANLEY SENIOR FUNDING, INC. CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12681366 PREVIOUSLY RECORDED ON REEL 039361 FRAME 0212. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Assignors: NXP B.V.
Assigned to MORGAN STANLEY SENIOR FUNDING, INC. reassignment MORGAN STANLEY SENIOR FUNDING, INC. CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12681366 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Assignors: NXP B.V.
Assigned to NXP B.V. reassignment NXP B.V. RELEASE BY SECURED PARTY (SEE DOCUMENT FOR DETAILS). Assignors: MORGAN STANLEY SENIOR FUNDING, INC.
Assigned to MORGAN STANLEY SENIOR FUNDING, INC. reassignment MORGAN STANLEY SENIOR FUNDING, INC. CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 042762 FRAME 0145. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Assignors: NXP B.V.
Assigned to MORGAN STANLEY SENIOR FUNDING, INC. reassignment MORGAN STANLEY SENIOR FUNDING, INC. CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 039361 FRAME 0212. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Assignors: NXP B.V.
Assigned to MORGAN STANLEY SENIOR FUNDING, INC. reassignment MORGAN STANLEY SENIOR FUNDING, INC. CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 042985 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Assignors: NXP B.V.
Assigned to MORGAN STANLEY SENIOR FUNDING, INC. reassignment MORGAN STANLEY SENIOR FUNDING, INC. CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT. Assignors: NXP B.V.
Adjusted expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99931Database or file accessing
    • Y10S707/99933Query processing, i.e. searching
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99941Database schema or data structure
    • Y10S707/99942Manipulating data structure, e.g. compression, compaction, compilation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99941Database schema or data structure
    • Y10S707/99943Generating database or data structure, e.g. via user interface

Definitions

  • the invention relates to a data memory for the storage of elements, the data of the elements and at least one chained list being stored in said data memory, which chained list contains, for each stored element, at least the element address thereof, the element number thereof and a pointer to the address of the stored element having the next-higher element number.
  • double chained lists in which, in addition to the successor element, the predecessor element is also stored. Granted, such double chained lists offer an improvement in respect of the search speed, but nevertheless they still require a considerable search effort as from a given length. Furthermore, they require additional storage space.
  • this object is achieved as disclosed in claim 1 by means of a data memory for the storage of elements which stores the data of the elements and at least one chained list which contains, for each stored element, at least the element address thereof, the element number thereof as well as a pointer to the address of the stored element having the next-higher element number, there also being provided an element status table which contains the element numbers of the elements present in the data memory, and also an address reference table which contains the element addresses for all element numbers.
  • the elements each having an element number, in principle are stored in an arbitrary location in the data memory. For example, they can be stored in the order of their arrival and their storage with an ascending order of addresses of the data memory.
  • a chained list which contains for each element its number, its element address in the data memory as well as a pointer to the address in the data memory of the stored element having the next-higher element number.
  • the data of the elements and the chained list can be stored together or also in separate locations in the data memory.
  • This element status table thus enables determination as to which elements or element numbers are already stored in the data memory. For example, for a new element to be inserted it can thus be determined which elements having the next-lower and next-higher element number are already present in the data memory. This facilitates the insertion of a new element in the chained list.
  • This address reference table facilitates the localization of a given element having a given element number in the data memory, because the memory location of the element can be readily determined on the basis of this table.
  • the element status table as well as the address reference table thus enable comparatively simple determination, without unnecessary memory accesses to the chained list, as to which elements having which element numbers have already been stored and where they have been stored in the data memory.
  • Claim 2 discloses an advantageous procedure for inserting a new element to be stored in the data memory and the chained list.
  • a search is performed in the element status table for that already stored element which has the next-lower element number.
  • the element having the next-lower number is then known from the element status table; the memory address thereof can also be simply localized in the data memory on the basis of the address reference table.
  • the pointer of the newly stored element as well as that of the element having the next-lower element number can be correctly set on the basis of this knowledge, without further memory accesses being required.
  • the access to the element status table can be facilitated in a further embodiment of the invention as disclosed in claim 3 by associating exactly one bit with each element or each element number in this table.
  • the existence of the already stored element numbers can be thus be demonstrated simply by checking the set bits in the element status table.
  • the chained list is a single chained list in which only the pointers pointing to the address of the element having the next-higher element number are taken up.
  • a further embodiment of the data memory in accordance with the invention as disclosed in claim 5 can be advantageously used for so-called data bus gateways.
  • Such gateways buffer messages, corresponding to the elements, and distribute the messages in an ordered fashion to data bus subscribers.
  • the data memory in accordance with the invention considering its specific memory structure and the possibility of ordered reading out of elements in conformity with the element number, offers special advantages.
  • FIG. 1 is a diagrammatic representation of a memory section of the data memory in accordance with the invention, together with the storage of the data of the elements as well as the chained list,
  • FIG. 2 shows an element status table for the data memory shown in FIG. 1,
  • FIG. 3 shows an address reference table for the data memory shown in FIG. 1, and
  • FIG. 4 is a representation in conformity with FIG. 1, be it with a new element additionally stored and taken up in the chained list.
  • FIG. 1 is a diagrammatic representation of a table showing how given elements, having given element numbers, are stored in a data memory which itself is not shown in the drawing.
  • the first column A of the table shown in FIG. 1 contains the memory addresses in the data memory.
  • the rendition of FIG. 1 shows that each element occupies four memory addresses in the data memory.
  • the second column N in the table of FIG. 1 lists the numbers N of the elements already stored in the data memory.
  • elements having the numbers 8 , 10 , 12 , 15 , 18 and 20 have already been stored in the data memory.
  • the third column indicates that for each element the data D thereof has been stored in the data memory. This data is not indicated in FIG. 1.
  • the fourth column of FIG. 1 shows pointers P which, for each element already stored in the data memory, point to the address of the element having the next-higher element number.
  • the entry on the first line of the table of FIG. 1 indicates that for the element bearing the number 10 the pointer P equal to 8 has been entered. This is because the element having the next-higher element number is the element 12 stored at the memory address 8 of the data memory (this is shown on the third line of the table).
  • the data indicated in FIG. 1 is stored in the data memory. Such storage can take place either separately in such a manner that the data D is stored separately from the addresses A in the element numbers N and the pointers P. However, this data may also be stored together.
  • the data of the addresses A, the element numbers N and the pointers P are also referred to as a chained list, because a chain of the elements ordered in conformity with their element number is obtained on the basis of this data.
  • each element number which might have to be stored in the data memory has a single bit.
  • the element having this number has already been stored in the data memory.
  • the address reference table in accordance with FIG. 3 contains for each element number N index R its memory address A index R in the data memory.
  • the representation in conformity with FIG. 3 shows, for the already stored elements indicated in the representation of FIG. 1, each time the memory address A index R at which the relevant element is stored in the data memory.
  • the representation in conformity with FIG. 3 shows a symbol XX for those elements or element numbers which have not yet been stored; this reference means that possibly even older addresses have been stored which are no longer valid. However, this is not a nuisance, because from the data of the element status table of FIG. 2 it is known which elements are actually stored.
  • the address reference table in conformity with FIG. 3 indicates the relevant memory location for such actually stored elements.
  • the address reference table of FIG. 3 thus enables the respective memory location to be found for an element found on the basis of the element status table.
  • the element status table and the address reference table are advantageous notably when an additional element is to be stored in the data memory and the pointers of this element and that of the already stored element having the next-lower element number have to be set again. This will be described in detail hereinafter with reference to FIG. 4.
  • FIG. 4 shows, in the same way as FIG. 1, elements stored in the data memory as well as the data of the chained list.
  • the element having the number 9 has to be stored as a new element as indicated in the example shown in FIG. 4, first it is checked in the element status table of FIG. 2 which element having the next-lower element number is stored. In the example shown in FIG. 2, this is the element number 8 whose bit has been set. This means that an element having the number 8 has already been stored in the data memory.
  • the pointer P for the newly stored element 9 points towards the address 0 , because the element having the next-higher element number, that is, the number 10 in this case, is stored at the address 0 .
  • the element status table and the address reference table can be advantageously used also for localizing this element having the next-higher number which must be known for the setting of the pointer of the new element to be stored.

Abstract

A data memory for storing elements, which data memory stores the data of the elements and at least a chained list which contains, for each stored element, at least its element address, its element number and a pointer to the address of the stored element having the next-higher element number. There are also provided an element status table, in which the element numbers of the elements present in the data memory are taken up, and also an address reference table which contains the element addresses for all element numbers.

Description

  • The invention relates to a data memory for the storage of elements, the data of the elements and at least one chained list being stored in said data memory, which chained list contains, for each stored element, at least the element address thereof, the element number thereof and a pointer to the address of the stored element having the next-higher element number. [0001]
  • Data memories involving such type of storage of elements as well as a chained list are known and offer advantages in particular when the elements stored are to be read from the data memory again in a given, ordered manner. Because of the data stored in the chained list, notably because of the pointers, the elements can be comparatively easily found and read out in the sequence of their number. [0002]
  • Such a data memory and such a type of data storage of the elements in the data memory, however, have a serious drawback in that the searching and finding of individual data elements has been found to be difficult. This drawback becomes manifest notably when it is necessary to insert new elements which have an element number within the range of the already stored elements. In dependence on the number of elements already present in the list, a large number of comparisons and memory accesses is required; however, such a large number is not acceptable for many applications. [0003]
  • In addition to the described single chained list there are also so-called double chained lists in which, in addition to the successor element, the predecessor element is also stored. Granted, such double chained lists offer an improvement in respect of the search speed, but nevertheless they still require a considerable search effort as from a given length. Furthermore, they require additional storage space. [0004]
  • It is an object of the invention to further develop said data memory for the storage of elements as well as at least one chained list in a manner such that the localization of given elements in the data memory or the chained list is facilitated and hence new elements can be taken up in the data memory and the chained list with as little effort as possible. [0005]
  • In accordance with the invention this object is achieved as disclosed in [0006] claim 1 by means of a data memory for the storage of elements which stores the data of the elements and at least one chained list which contains, for each stored element, at least the element address thereof, the element number thereof as well as a pointer to the address of the stored element having the next-higher element number, there also being provided an element status table which contains the element numbers of the elements present in the data memory, and also an address reference table which contains the element addresses for all element numbers.
  • The elements, each having an element number, in principle are stored in an arbitrary location in the data memory. For example, they can be stored in the order of their arrival and their storage with an ascending order of addresses of the data memory. In order to localize the elements again there is provided a chained list which contains for each element its number, its element address in the data memory as well as a pointer to the address in the data memory of the stored element having the next-higher element number. The data of the elements and the chained list can be stored together or also in separate locations in the data memory. [0007]
  • As a result of the pointers, pointing to the element having the next-higher element address for each element, a kind of chaining of the elements is achieved. This is because the chain extends from the element having the lowest number to the element having the highest number, that is, in the order of the element numbers. This chain thus contains all elements stored in the data memory in the order of their element number. As has been stated before, this has nothing to do with the location of the storage in the data memory which may in principle be arbitrary for each element. [0008]
  • This chained list offers an advantage for the localization of an element, in particular when the elements are to be read out in the order of their element number, as is desirable for given applications. [0009]
  • In practice only given elements having given element numbers are stored at an arbitrary instant. Elements arriving later so as to be stored possibly have element numbers which are within the range of the already stored elements or their numbers. Therefore, when a new element having a new number is stored, this element must be inserted in the chained list and notably the pointers of the relevant elements in the chained list must be set again. When a search is performed in the chained list in a manner in conformity with the state of the art, a large number of comparisons and memory accesses will then be required; this is not acceptable for many applications. [0010]
  • Therefore, in accordance with the invention there are provided two further tables which facilitate the localization of a given element. [0011]
  • In addition to the chained list there is provided an element status table in which the element numbers of the elements present in the data memory are taken up. [0012]
  • This element status table thus enables determination as to which elements or element numbers are already stored in the data memory. For example, for a new element to be inserted it can thus be determined which elements having the next-lower and next-higher element number are already present in the data memory. This facilitates the insertion of a new element in the chained list. [0013]
  • In accordance with the invention there is also provided an address reference table in which, for all elements and element numbers already stored, their element address in the data memory is taken up. [0014]
  • This address reference table facilitates the localization of a given element having a given element number in the data memory, because the memory location of the element can be readily determined on the basis of this table. [0015]
  • The element status table as well as the address reference table thus enable comparatively simple determination, without unnecessary memory accesses to the chained list, as to which elements having which element numbers have already been stored and where they have been stored in the data memory. [0016]
  • This enables comparatively simple localization of a given element having a given element number. Furthermore, such tables facilitate the insertion of a new element in the chained list and the new setting of the pointers, because it is known which next-higher or next-lower element is present and where it is stored in the memory. [0017]
  • Apart from the access to the two tables, in the case of the data memory in accordance with the invention it is not necessary to carry out search operations in the data memory and in the chained list. [0018]
  • [0019] Claim 2 discloses an advantageous procedure for inserting a new element to be stored in the data memory and the chained list. Prior to the storage of a new element, a search is performed in the element status table for that already stored element which has the next-lower element number. The element having the next-lower number is then known from the element status table; the memory address thereof can also be simply localized in the data memory on the basis of the address reference table. After the storage of the new element in the chained list, the pointer of the newly stored element as well as that of the element having the next-lower element number can be correctly set on the basis of this knowledge, without further memory accesses being required.
  • The access to the element status table can be facilitated in a further embodiment of the invention as disclosed in [0020] claim 3 by associating exactly one bit with each element or each element number in this table. The existence of the already stored element numbers can be thus be demonstrated simply by checking the set bits in the element status table.
  • In conformity with a further embodiment of the invention as disclosed in [0021] claim 4, the chained list is a single chained list in which only the pointers pointing to the address of the element having the next-higher element number are taken up.
  • Because of the simple localization offered in accordance with the invention, no double chained list is required as it no longer offers advantages over a single chained list which requires less storage space. [0022]
  • A further embodiment of the data memory in accordance with the invention as disclosed in [0023] claim 5 can be advantageously used for so-called data bus gateways. Such gateways buffer messages, corresponding to the elements, and distribute the messages in an ordered fashion to data bus subscribers. In this case the data memory in accordance with the invention, considering its specific memory structure and the possibility of ordered reading out of elements in conformity with the element number, offers special advantages.
  • An embodiment of the invention will be described in detail hereinafter with reference to the drawing. Therein: [0024]
  • FIG. 1 is a diagrammatic representation of a memory section of the data memory in accordance with the invention, together with the storage of the data of the elements as well as the chained list, [0025]
  • FIG. 2 shows an element status table for the data memory shown in FIG. 1, [0026]
  • FIG. 3 shows an address reference table for the data memory shown in FIG. 1, and [0027]
  • FIG. 4 is a representation in conformity with FIG. 1, be it with a new element additionally stored and taken up in the chained list.[0028]
  • FIG. 1 is a diagrammatic representation of a table showing how given elements, having given element numbers, are stored in a data memory which itself is not shown in the drawing. [0029]
  • The first column A of the table shown in FIG. 1 contains the memory addresses in the data memory. The rendition of FIG. 1 shows that each element occupies four memory addresses in the data memory. [0030]
  • The second column N in the table of FIG. 1 lists the numbers N of the elements already stored in the data memory. In the example shown in FIG. 1, elements having the [0031] numbers 8, 10, 12, 15, 18 and 20 have already been stored in the data memory.
  • The third column indicates that for each element the data D thereof has been stored in the data memory. This data is not indicated in FIG. 1. [0032]
  • The fourth column of FIG. 1 shows pointers P which, for each element already stored in the data memory, point to the address of the element having the next-higher element number. For example, the entry on the first line of the table of FIG. 1 indicates that for the element bearing the [0033] number 10 the pointer P equal to 8 has been entered. This is because the element having the next-higher element number is the element 12 stored at the memory address 8 of the data memory (this is shown on the third line of the table).
  • The data indicated in FIG. 1 is stored in the data memory. Such storage can take place either separately in such a manner that the data D is stored separately from the addresses A in the element numbers N and the pointers P. However, this data may also be stored together. The data of the addresses A, the element numbers N and the pointers P are also referred to as a chained list, because a chain of the elements ordered in conformity with their element number is obtained on the basis of this data. [0034]
  • The storage of elements in conformity with the representation shown in FIG. 1 in a data memory is known in principle. However, a problem is encountered in that when new elements are inserted, elements already present must be localized. This is because, when an element having a given element number is inserted, it is necessary to search the element having the next-lower element number from among the elements already stored, because the pointer thereof must be changed with a view to the new element to be inserted and its element number. To this end, search operations must be performed in the chained list, said operations necessitating a corresponding number of read accesses to the data memory. However, this is not desirable for given applications. [0035]
  • Therefore, in the data memory there are also stored an element status table as shown in FIG. 2 as well as an address reference table as shown in FIG. 3. [0036]
  • In the element status table shown in FIG. 2 each element number which might have to be stored in the data memory has a single bit. Thus, if a bit for a given element number in the element status table shown in FIG. 2 has been set, the element having this number has already been stored in the data memory. Conversely, this means that element numbers for which the corresponding bit has not yet been set in the element status table shown in FIG. 2 have not yet been stored in the data memory. [0037]
  • Thus, reading out the element status table shown in FIG. 2 enables simple determination as to which elements have already been stored in the data memory. [0038]
  • This is important because, as has already been explained, for the storage of each new element having a new element number it is necessary to determine which element having the respective lower element number has already been stored. This operation can be carried out in a simple manner by means of the element status table shown in FIG. 2. [0039]
  • Once the already stored element having the next-lower element number in relation to the new element to be stored has been determined, the respective address of this element can be determined in a simple manner by means of the address reference table shown in FIG. 3. [0040]
  • This is because the address reference table in accordance with FIG. 3 contains for each element number N index R its memory address A index R in the data memory. The representation in conformity with FIG. 3 shows, for the already stored elements indicated in the representation of FIG. 1, each time the memory address A index R at which the relevant element is stored in the data memory. The representation in conformity with FIG. 3 shows a symbol XX for those elements or element numbers which have not yet been stored; this reference means that possibly even older addresses have been stored which are no longer valid. However, this is not a nuisance, because from the data of the element status table of FIG. 2 it is known which elements are actually stored. The address reference table in conformity with FIG. 3 indicates the relevant memory location for such actually stored elements. [0041]
  • The address reference table of FIG. 3 thus enables the respective memory location to be found for an element found on the basis of the element status table. [0042]
  • The element status table and the address reference table are advantageous notably when an additional element is to be stored in the data memory and the pointers of this element and that of the already stored element having the next-lower element number have to be set again. This will be described in detail hereinafter with reference to FIG. 4. [0043]
  • FIG. 4 shows, in the same way as FIG. 1, elements stored in the data memory as well as the data of the chained list. [0044]
  • In the representation of FIG. 4, however, a further element having the [0045] element number 9 has been stored at the address 24 of the data memory. The pointer P of the element 9 points to the address 0, because the element having the next-higher element number, that is, the element bearing the number 10, is stored at the address 0 of the data memory. In comparison with the representation of FIG. 1, furthermore, the pointer of the element 8, that is, the element having the next-lower element number, has also been changed. This pointer must now point towards the newly stored element 9 or the memory address 24 thereof.
  • For the insertion of such an element a procedure in accordance with prior art would require various memory accesses, because it would have to be determined which element having the next-lower element number is present and where it is stored, and also which element having the next-higher element number is present and where it is stored. [0046]
  • In accordance with the invention this procedure is substantially simplified by the element status table of FIG. 2 and the address reference table of FIG. 3. [0047]
  • For example, if the element having the [0048] number 9 has to be stored as a new element as indicated in the example shown in FIG. 4, first it is checked in the element status table of FIG. 2 which element having the next-lower element number is stored. In the example shown in FIG. 2, this is the element number 8 whose bit has been set. This means that an element having the number 8 has already been stored in the data memory.
  • On the basis of the data of the address reference table in conformity with FIG. 3, it can now be simply determined where said element is stored. This is because the address reference table of FIG. 3 indicates the [0049] address storage number 16 for the element having the number 8. As appears from the FIGS. 1 and 4, the element having the number 8 is indeed stored at the address 16.
  • For this element the entry of the pointer P in the chained list must be changed accordingly, since this pointer must now point to the [0050] address 24 at which the newly stored element having the element number 9 has been stored.
  • The pointer P for the newly stored [0051] element 9 points towards the address 0, because the element having the next-higher element number, that is, the number 10 in this case, is stored at the address 0. The element status table and the address reference table can be advantageously used also for localizing this element having the next-higher number which must be known for the setting of the pointer of the new element to be stored.
  • To sum it up, it can be said that the availability of these two tables enables a substantial reduction of the number of search operations in comparison with prior art data memories. It is notably not necessary to perform a search in the chained list, because the necessary data can be determined directly by simply accessing these two tables. [0052]

Claims (5)

1. A data memory for the storage of elements, the data of the elements and at least one chained list being stored in said data memory, which chained list contains, for each stored element, at least the element address thereof, the element number thereof and a pointer to the address of the stored element having the next-higher element number, there also being provided an element status table which contains the element numbers of the elements present in the data memory, and also an address reference table which contains the element addresses for all element numbers.
2. A data memory as claimed in claim 1, characterized in that prior to the storage of a new element, a search is performed in the element status table for the already stored element having the next-lower element number while the element address thereof is determined in the address reference table, and that after the storage of the new element its pointer in the chained list is set to the address of the element having the next-higher element number while the pointer of the element determined as having the next-lower element number is set to the address of the newly stored element.
3. A data memory as claimed in claim 1, characterized in that a respective bit is associated with each element in the element status table.
4. A data memory as claimed in claim 1, characterized in that the chained list is a single chained list which contains the pointers which point only to the address of the element having the next-higher element number.
5. A data memory as claimed in claim 1, characterized in that the data memory is provided in a data bus gateway, notably a CAN bus gateway or a FlexRay bus gateway, for the buffering and ordered distribution of data elements.
US10/409,437 2002-04-10 2003-04-08 Fast search algorithm for data sorting in chained lists Expired - Fee Related US7197621B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
DE10215719A DE10215719A1 (en) 2002-04-10 2002-04-10 Data storage device, e.g. for a CAN bus gateway, whereby said storage device stores elements together with a chain list that contains element addresses, etc., together with additional element number and address reference tables
DE10215719.7 2002-04-10

Publications (2)

Publication Number Publication Date
US20030225983A1 true US20030225983A1 (en) 2003-12-04
US7197621B2 US7197621B2 (en) 2007-03-27

Family

ID=28684890

Family Applications (1)

Application Number Title Priority Date Filing Date
US10/409,437 Expired - Fee Related US7197621B2 (en) 2002-04-10 2003-04-08 Fast search algorithm for data sorting in chained lists

Country Status (2)

Country Link
US (1) US7197621B2 (en)
DE (1) DE10215719A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080137679A1 (en) * 2005-01-31 2008-06-12 Robert Bosch Gmbh Method for Transmitting Data in Messages Via a Communication Link of a Communication System, as well as a Communication Module, User of a Communication System, and Communication System for Implementing This Method
US20080226179A1 (en) * 2007-03-12 2008-09-18 Nintendo Co., Ltd. Storage medium having stored thereon image processing program and image processing apparatus
US20100220735A1 (en) * 2005-06-09 2010-09-02 Nxp B.V. Storage unit for communication system node, method for data storage and communication system node

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004038212A1 (en) 2004-08-05 2006-03-16 Robert Bosch Gmbh FlexRay communication module
FR2901442B1 (en) * 2006-05-17 2008-08-22 Airbus France Sas SECURE FILE TRANSFER METHOD
US8909676B1 (en) * 2006-10-06 2014-12-09 Uei Cayman Inc. Star cluster codeset database for universal remote control devices

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5671406A (en) * 1995-10-18 1997-09-23 Digital Equipment Corporation Data structure enhancements for in-place sorting of a singly linked list
US5715455A (en) * 1995-05-18 1998-02-03 International Business Machines Corporation Apparatus and method for storing file allocation table efficiently in memory
US5850395A (en) * 1995-07-19 1998-12-15 Fujitsu Network Communications, Inc. Asynchronous transfer mode based service consolidation switch
US5860074A (en) * 1995-09-25 1999-01-12 Adobe Systems Incorporated Method and apparatus for displaying an electronic document with text over object
US6338115B1 (en) * 1999-02-16 2002-01-08 International Business Machines Corporation Advanced read cache management
US20020095421A1 (en) * 2000-11-29 2002-07-18 Koskas Elie Ouzi Methods of organizing data and processing queries in a database system, and database system and software product for implementing such methods
US6477612B1 (en) * 2000-02-08 2002-11-05 Microsoft Corporation Providing access to physical memory allocated to a process by selectively mapping pages of the physical memory with virtual memory allocated to the process
US20030018689A1 (en) * 2001-07-19 2003-01-23 Balakrishnan Ramakrishnan Method, system, and computer program product for managing a re-usable resource with linked list groups
US6754795B2 (en) * 2001-12-21 2004-06-22 Agere Systems Inc. Methods and apparatus for forming linked list queue using chunk-based structure
US20040167923A1 (en) * 2000-06-28 2004-08-26 Carr. David W. Method and apparatus for longest matching prefix determination in a communication network
US6848033B2 (en) * 2001-06-07 2005-01-25 Hewlett-Packard Development Company, L.P. Method of memory management in a multi-threaded environment and program storage device
US20050055529A1 (en) * 2003-09-10 2005-03-10 Lubbers Clark Edward Adaptive mapping

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5715455A (en) * 1995-05-18 1998-02-03 International Business Machines Corporation Apparatus and method for storing file allocation table efficiently in memory
US5850395A (en) * 1995-07-19 1998-12-15 Fujitsu Network Communications, Inc. Asynchronous transfer mode based service consolidation switch
US5860074A (en) * 1995-09-25 1999-01-12 Adobe Systems Incorporated Method and apparatus for displaying an electronic document with text over object
US5671406A (en) * 1995-10-18 1997-09-23 Digital Equipment Corporation Data structure enhancements for in-place sorting of a singly linked list
US6338115B1 (en) * 1999-02-16 2002-01-08 International Business Machines Corporation Advanced read cache management
US6477612B1 (en) * 2000-02-08 2002-11-05 Microsoft Corporation Providing access to physical memory allocated to a process by selectively mapping pages of the physical memory with virtual memory allocated to the process
US20040167923A1 (en) * 2000-06-28 2004-08-26 Carr. David W. Method and apparatus for longest matching prefix determination in a communication network
US20020095421A1 (en) * 2000-11-29 2002-07-18 Koskas Elie Ouzi Methods of organizing data and processing queries in a database system, and database system and software product for implementing such methods
US6848033B2 (en) * 2001-06-07 2005-01-25 Hewlett-Packard Development Company, L.P. Method of memory management in a multi-threaded environment and program storage device
US20030018689A1 (en) * 2001-07-19 2003-01-23 Balakrishnan Ramakrishnan Method, system, and computer program product for managing a re-usable resource with linked list groups
US6754795B2 (en) * 2001-12-21 2004-06-22 Agere Systems Inc. Methods and apparatus for forming linked list queue using chunk-based structure
US20050055529A1 (en) * 2003-09-10 2005-03-10 Lubbers Clark Edward Adaptive mapping

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080137679A1 (en) * 2005-01-31 2008-06-12 Robert Bosch Gmbh Method for Transmitting Data in Messages Via a Communication Link of a Communication System, as well as a Communication Module, User of a Communication System, and Communication System for Implementing This Method
US7801131B2 (en) * 2005-01-31 2010-09-21 Robert Bosch Gmbh Method for transmitting data in messages via a communication link of a communication system, as well as a communication module, user of a communication system, and communication system for implementing this method
US20100220735A1 (en) * 2005-06-09 2010-09-02 Nxp B.V. Storage unit for communication system node, method for data storage and communication system node
US8660131B2 (en) * 2005-06-09 2014-02-25 Nxp B.V. Storage unit for communication system node, method for data storage and communication system node
US20080226179A1 (en) * 2007-03-12 2008-09-18 Nintendo Co., Ltd. Storage medium having stored thereon image processing program and image processing apparatus

Also Published As

Publication number Publication date
US7197621B2 (en) 2007-03-27
DE10215719A1 (en) 2003-10-30

Similar Documents

Publication Publication Date Title
US5477537A (en) Method for accessing address features of communication subscribers when sending data packets
US7373514B2 (en) High-performance hashing system
US9280609B2 (en) Exact match lookup scheme
US6775281B1 (en) Method and apparatus for a four-way hash table
CN101621502A (en) Method and device for storing and searching routing table
CA2323098C (en) Method and access means for determining the storage address of a data value in a memory device
US20080028140A1 (en) Lookups by collisionless direct tables and cams
US20070286194A1 (en) Method and Device for Processing Data Packets
US20040139274A1 (en) Virtual content addressable memory with high speed key insertion and deletion and pipelined key search
US6804230B1 (en) Communication device with forwarding database having a trie search facility
CN103907099B (en) Short address conversion table uncached in cache coherence computer system
JP3644494B2 (en) Information retrieval device
US6954823B1 (en) Search engine device and method for generating output search responses from multiple input search responses
US6629195B2 (en) Implementing semaphores in a content addressable memory
US5717916A (en) Method for providing an improved fully associative cache memory having a finite state machine and linked list structure
US20030225983A1 (en) Data memory
US6279097B1 (en) Method and apparatus for adaptive address lookup table generator for networking application
US6366996B1 (en) Page memory management in non time critical data buffering applications
US6009504A (en) Apparatus and method for storing data associated with multiple addresses in a storage element using a base address and a mask
US20080034115A1 (en) Apparatus for handling hash collisions of hash searching and method using the same
US6611894B1 (en) Data retrieval apparatus
US7107392B2 (en) Content addressable memory (CAM) device employing a recirculating shift register for data storage
US11899985B1 (en) Virtual modules in TCAM
US6314099B1 (en) Address match determining device, communication control system, and address match determining method
US6341346B1 (en) Method for comparison between a pattern sequence and a variable length key

Legal Events

Date Code Title Description
AS Assignment

Owner name: KONINKLIJKE PHILIPS ELECTRONICS N.V., NETHERLANDS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:HABBEN, HARTMUT KARL;HANK, PETER;REEL/FRAME:014361/0910

Effective date: 20030409

AS Assignment

Owner name: NXP B.V., NETHERLANDS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:KONINKLIJKE PHILIPS ELECTRONICS N.V.;REEL/FRAME:019719/0843

Effective date: 20070704

Owner name: NXP B.V.,NETHERLANDS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:KONINKLIJKE PHILIPS ELECTRONICS N.V.;REEL/FRAME:019719/0843

Effective date: 20070704

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: 20110327

AS Assignment

Owner name: MORGAN STANLEY SENIOR FUNDING, INC., MARYLAND

Free format text: SECURITY AGREEMENT SUPPLEMENT;ASSIGNOR:NXP B.V.;REEL/FRAME:038017/0058

Effective date: 20160218

AS Assignment

Owner name: MORGAN STANLEY SENIOR FUNDING, INC., MARYLAND

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12092129 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT;ASSIGNOR:NXP B.V.;REEL/FRAME:039361/0212

Effective date: 20160218

AS Assignment

Owner name: NXP B.V., NETHERLANDS

Free format text: PATENT RELEASE;ASSIGNOR:MORGAN STANLEY SENIOR FUNDING, INC.;REEL/FRAME:039707/0471

Effective date: 20160805

AS Assignment

Owner name: MORGAN STANLEY SENIOR FUNDING, INC., MARYLAND

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12681366 PREVIOUSLY RECORDED ON REEL 039361 FRAME 0212. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT;ASSIGNOR:NXP B.V.;REEL/FRAME:042762/0145

Effective date: 20160218

Owner name: MORGAN STANLEY SENIOR FUNDING, INC., MARYLAND

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12681366 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT;ASSIGNOR:NXP B.V.;REEL/FRAME:042985/0001

Effective date: 20160218

AS Assignment

Owner name: NXP B.V., NETHERLANDS

Free format text: RELEASE BY SECURED PARTY;ASSIGNOR:MORGAN STANLEY SENIOR FUNDING, INC.;REEL/FRAME:050745/0001

Effective date: 20190903

AS Assignment

Owner name: MORGAN STANLEY SENIOR FUNDING, INC., MARYLAND

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 042985 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT;ASSIGNOR:NXP B.V.;REEL/FRAME:051029/0001

Effective date: 20160218

Owner name: MORGAN STANLEY SENIOR FUNDING, INC., MARYLAND

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 042762 FRAME 0145. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT;ASSIGNOR:NXP B.V.;REEL/FRAME:051145/0184

Effective date: 20160218

Owner name: MORGAN STANLEY SENIOR FUNDING, INC., MARYLAND

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 039361 FRAME 0212. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT;ASSIGNOR:NXP B.V.;REEL/FRAME:051029/0387

Effective date: 20160218

Owner name: MORGAN STANLEY SENIOR FUNDING, INC., MARYLAND

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 12298143 PREVIOUSLY RECORDED ON REEL 038017 FRAME 0058. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT;ASSIGNOR:NXP B.V.;REEL/FRAME:051030/0001

Effective date: 20160218

Owner name: MORGAN STANLEY SENIOR FUNDING, INC., MARYLAND

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION12298143 PREVIOUSLY RECORDED ON REEL 042985 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT;ASSIGNOR:NXP B.V.;REEL/FRAME:051029/0001

Effective date: 20160218

Owner name: MORGAN STANLEY SENIOR FUNDING, INC., MARYLAND

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION12298143 PREVIOUSLY RECORDED ON REEL 039361 FRAME 0212. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT;ASSIGNOR:NXP B.V.;REEL/FRAME:051029/0387

Effective date: 20160218

Owner name: MORGAN STANLEY SENIOR FUNDING, INC., MARYLAND

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION12298143 PREVIOUSLY RECORDED ON REEL 042762 FRAME 0145. ASSIGNOR(S) HEREBY CONFIRMS THE SECURITY AGREEMENT SUPPLEMENT;ASSIGNOR:NXP B.V.;REEL/FRAME:051145/0184

Effective date: 20160218