TWI450112B - System and method for structuring data - Google Patents

System and method for structuring data Download PDF

Info

Publication number
TWI450112B
TWI450112B TW098112926A TW98112926A TWI450112B TW I450112 B TWI450112 B TW I450112B TW 098112926 A TW098112926 A TW 098112926A TW 98112926 A TW98112926 A TW 98112926A TW I450112 B TWI450112 B TW I450112B
Authority
TW
Taiwan
Prior art keywords
data
matrix
string
line
temporary variable
Prior art date
Application number
TW098112926A
Other languages
Chinese (zh)
Other versions
TW201039152A (en
Inventor
Shen Chun Li
Yung Chieh Chen
Shou Kuo Hsu
Original Assignee
Hon Hai Prec Ind Co Ltd
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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW098112926A priority Critical patent/TWI450112B/en
Publication of TW201039152A publication Critical patent/TW201039152A/en
Application granted granted Critical
Publication of TWI450112B publication Critical patent/TWI450112B/en

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

資料結構化處理系統及方法 Data structure processing system and method

本發明涉及一種資料處理系統及方法,尤其係關於一種資料結構化處理系統及方法。 The present invention relates to a data processing system and method, and more particularly to a data structure processing system and method.

一般地,當電子產品生產商利用CAD系統進行電子產品之開發及設計時,通常需要從儲存有電子產品零件資訊(例如PCB板)之原始資料庫內導入大量之資料,例如儲存有電子產品各零件資訊之*.DSN資料庫。然而,由於*.DSN資料庫中儲存之零件資訊沒有一定之關聯性,包括PCB板佈線資訊及穿孔資訊等等,從而使得導入到CAD系統之零件資訊之間之二維幾何空間很難重建成為三維之幾何空間。此外,當從*.DSN資料庫中讀取電子產品之資料資訊時,發現*.DSN資料庫中之檔案大小非常大,一般檔案大小約於20MB到150MB之間,這造成直接對*.DSN資料庫進行搜尋零件資訊時,可能耗費數個小時才能做完所有之搜尋與分類,從而影響電腦系統讀寫資料速度及運算速度能力。 Generally, when an electronic product manufacturer uses a CAD system to develop and design an electronic product, it is usually necessary to import a large amount of data from an original database storing information on electronic product parts (for example, a PCB board), for example, storing electronic products. *.DSN database of parts information. However, because there is no correlation between the parts information stored in the *.DSN database, including PCB board routing information and perforation information, it is difficult to reconstruct the two-dimensional geometric space between the parts information imported into the CAD system. 3D geometric space. In addition, when reading the information of electronic products from the *.DSN database, it is found that the files in the *.DSN database are very large, and the general file size is between 20MB and 150MB, which results directly to *.DSN. When the database searches for part information, it may take several hours to complete all the search and classification, which affects the speed and speed of the computer system.

鑒於以上內容,有必要提供一種資料處理系統及方法對原始資料庫中之資料進行矩陣化後儲存,使得未來應用該矩陣化後之資料庫時可以大幅提升讀寫資料速度及運算速度能力。 In view of the above, it is necessary to provide a data processing system and method for matrixing and storing the data in the original database, so that the matrix data can be greatly improved in reading and writing data in the future.

一種資料結構化處理系統,運行於電腦中,該電腦連接一儲存有 需要進行資料結構化處理之原始資料之資料庫。所述之資料結構化處理系統包括:資料讀取模組,用於從資料庫中讀取原始資料,將原始資料以字串形式儲存於一暫時變數內,依據純文字檔案格式之換行標記將暫時變數內之字串分割成每一行,並從第一行開始將每一行加上行號標記;資料矩陣構建模組,用於構建複數矩陣陣列,並設置每一矩陣陣列之儲存容量值,根據每一矩陣陣列之儲存容量值從暫時變數內讀取與儲存容量值相等之字串儲存於該矩陣陣列中,並將構建之各矩陣陣列合併成為單一資料矩陣;矩陣分類儲存模組,用於根據各矩陣陣列內之資料特徵於單一資料矩陣內將各矩陣陣列中之資料進行分類,將各分類之矩陣陣列放置於對應之資料夾中,並將資料夾進行加密後儲存於電腦之硬碟中。 A data structured processing system running in a computer, the computer connected to a storage A database of raw materials that require structured data processing. The data structure processing system includes: a data reading module, configured to read the original data from the database, and store the original data in a temporary variable in a string form, and the line feed mark according to the plain text file format The string in the temporary variable is divided into each line, and each line is marked with a line number from the first line; a data matrix construction module is used to construct a complex matrix array, and the storage capacity value of each matrix array is set, according to The storage capacity value of each matrix array is read from the temporary variable and stored in the matrix array, and the constructed matrix arrays are merged into a single data matrix; the matrix classification storage module is used for According to the data characteristics in each matrix array, the data in each matrix array is classified in a single data matrix, the matrix array of each classification is placed in the corresponding folder, and the data folder is encrypted and stored in a hard disk of the computer. in.

一種資料結構化處理方法,用於對儲存於資料庫內之原始資料進行資料結構化處理。該方法包括如下步驟:(a)從資料庫內讀取原始資料,並以字串形式儲存於一暫時變數內;(b)依據純文字檔案格式之換行標記將暫時變數內之字串分割成每一行,並從第一行開始將每一行加上行號標記;(c)初始化一用於讀取暫時變數內資料時指向每一行字串之資料讀取指針;(d)構建一矩陣陣列,並從暫時變數內讀取與矩陣陣列儲存容量相等之字串放置於該矩陣陣列中;(e)判斷資料讀取指針指向暫時變數內之行號標記是否為結束標記;(f)若資料讀取指針指向暫時變數內之行號標記不是結束標記,則轉向步驟(d)重新構建一矩陣陣列;(g)若資料讀取指針指向暫時變數內之行號標記是結束標記,將構建之各矩陣陣列合併成為單一資料矩陣;(h)根據各矩陣陣列內之資料特徵於單一資料矩陣中將各矩陣陣列內 之資料進行分類;及(i)將各分類之矩陣陣列放置於對應之資料夾中,並將資料夾進行加密後儲存。 A data structure processing method for data structure processing of original data stored in a database. The method comprises the following steps: (a) reading the original data from the database and storing it in a temporary variable in a string form; (b) dividing the string in the temporary variable into a string according to the linefeed mark in the plain text file format. Each line, and each line is marked with a line number from the first line; (c) initialize a data read pointer for each line string when reading data in the temporary variable; (d) construct a matrix array, And reading a string equal to the storage capacity of the matrix array from the temporary variable and placing it in the matrix array; (e) determining whether the data read pointer points to the line number mark in the temporary variable is an end mark; (f) if the data is read If the pointer number points to the temporary variable, the line number mark is not the end mark, then go to step (d) to reconstruct a matrix array; (g) if the data read pointer points to the line number mark in the temporary variable is the end mark, each will be constructed The matrix arrays are merged into a single data matrix; (h) each matrix array is placed in a single data matrix according to the data characteristics in each matrix array The data is classified; and (i) the matrix array of each classification is placed in the corresponding folder, and the folder is encrypted and stored.

相較於習知技術,所述之資料結構化處理系統及方法可針對資料庫中大量原始資料進行有效之資料分類,並將分類後之資料進行矩陣化後儲存,使得未來應用該矩陣化後之資料時可以大幅提升讀寫資料速度及運算速度能力,節省電腦系統之記憶體及運算資源。 Compared with the prior art, the data structure processing system and method can perform effective data classification on a large amount of original data in the database, and store the classified data in a matrix, so that the matrix can be applied in the future. The data can greatly improve the speed of reading and writing data and the speed of computing, saving the memory and computing resources of the computer system.

1‧‧‧電腦 1‧‧‧ computer

10‧‧‧資料結構化處理系統 10‧‧‧Data Structured Processing System

101‧‧‧資料讀取模組 101‧‧‧ data reading module

102‧‧‧資料矩陣構建模組 102‧‧‧Data Matrix Building Module

103‧‧‧矩陣分類儲存模組 103‧‧‧Matrix classification storage module

11‧‧‧中央處理器 11‧‧‧Central processor

12‧‧‧硬碟 12‧‧‧ Hard disk

2‧‧‧資料庫 2‧‧‧Database

圖1係本發明資料結構化處理系統較佳實施例之架構圖。 1 is a block diagram of a preferred embodiment of a data structure processing system of the present invention.

圖2係單一資料矩陣內複數矩陣陣列分類資料之示意圖。 Figure 2 is a schematic diagram of the classification data of a complex matrix array in a single data matrix.

圖3係本發明資料結構化處理方法較佳實施例之流程圖。 3 is a flow chart of a preferred embodiment of the data structure processing method of the present invention.

圖4係圖3中步驟S34之構建每一矩陣陣列之細化流程圖。 FIG. 4 is a detailed flowchart of the construction of each matrix array in step S34 of FIG. 3.

如圖1所示,係本發明資料結構化處理系統較佳實施例之架構圖。所述之資料結構化處理系統10運行於電腦1中,該電腦1連接有資料庫2。所述之電腦1包括中央處理器11及硬碟12,所述之資料庫2儲存有需要進行結構化之原始資料。本實施例中,所述之原始資料係電子產品進行電路佈線繪圖中所包含之零件資訊資料,該電子產品之零件資訊以*.DSN檔案格式儲存於所述之資料庫2中。於其他實施例中,所述之原始資料可以為任何可供電腦1讀寫之資料資訊。所述之中央處理器11用於執行所述之資料結構化處理系統10,該中央處理器11可以為具有多核心處理器,其可以設計成為多執行緒之平行處理程式架構,可以提高程式執行速度與 計算效能。所述之硬碟12用於儲存對於資料庫2中之原始資料進行結構化處理後之資料檔案。所述之資料結構化處理系統10包括資料讀取模組101、資料矩陣構建模組102、及矩陣分類儲存模組103。 1 is an architectural diagram of a preferred embodiment of a data structure processing system of the present invention. The data structured processing system 10 is operated in a computer 1, and the computer 1 is connected to a database 2. The computer 1 includes a central processing unit 11 and a hard disk 12, and the data base 2 stores original data that needs to be structured. In this embodiment, the original data is an electronic product that performs part information information included in the circuit wiring drawing, and the part information of the electronic product is stored in the database 2 in a *.DSN file format. In other embodiments, the original data may be any information that can be read and written by the computer 1. The central processing unit 11 is configured to execute the data structure processing system 10, and the central processing unit 11 can be a multi-core processor, which can be designed as a multi-threaded parallel processing program architecture, which can improve program execution. Speed and Calculate performance. The hard disk 12 is configured to store a data file that has been structured for the original data in the database 2. The data structure processing system 10 includes a data reading module 101, a data matrix construction module 102, and a matrix classification storage module 103.

所述之資料讀取模組101用於從資料庫2中讀取*.DSN檔案中之原始資料,將該*.DSN檔案中之原始資料以字串形式儲存於一暫時變數TEMP內,依據*.DSN檔案之純文字檔案格式中之換行標記分割每一行,並從第一行開始將每一行加上行號標記,包括第一行標記、第二行標記直至最後一行之結束標記。所述之資料讀取模組101還用於初始化一用於於讀取暫時變數TEMP內資料時指向每一行字串之資料讀取指針。 The data reading module 101 is configured to read the original data in the *.DSN file from the database 2, and store the original data in the *.DSN file in a temporary variable TEMP in a string form, according to *. The line break mark in the plain text file format of the DSN file divides each line, and marks each line with a line number from the first line, including the first line mark, the second line mark, and the end mark of the last line. The data reading module 101 is further configured to initialize a data reading pointer for each line string when reading the data in the temporary variable TEMP.

所述之資料矩陣構建模組102用於構建複數矩陣陣列,並設置每一矩陣陣列之儲存容量值,及根據每一矩陣陣列之儲存容量值從暫時變數TEMP內讀取與儲存容量值相等之字串儲存於該矩陣陣列中,並將構建之各矩陣陣列合併成為單一資料矩陣(如圖2所示)。本實施例中,所述之資料矩陣構建模組102還用於判斷資料讀取指針指向暫時變數TEMP內之行號標記是否為結束標記,將已放置矩陣陣列內相應之一行字串資料從暫時變數TEMP內清除,並使資料讀取指針指向暫時變數TEMP內下一行之字串資料。 The data matrix construction module 102 is configured to construct a complex matrix array, and set a storage capacity value of each matrix array, and read and store the storage capacity value from the temporary variable TEMP according to the storage capacity value of each matrix array. The strings are stored in the matrix array and the constructed matrix arrays are combined into a single data matrix (as shown in Figure 2). In this embodiment, the data matrix construction module 102 is further configured to determine whether the data reading pointer points to the end number of the temporary variable TEMP, and the corresponding one of the row string data in the matrix array is temporarily The variable TEMP is cleared, and the data read pointer is pointed to the string data of the next line in the temporary variable TEMP.

所述之矩陣分類儲存模組103用於根據各矩陣陣列內之資料特徵於單一資料矩陣中將各矩陣陣列內之資料進行分類,將各分類之矩陣陣列放置於對應之資料夾中,及將資料夾進行加密後儲存於硬碟12中。所述之對資料夾進行加密採用通用之加密方式,以便保護資料之安全性。本實施例中,矩陣分類儲存模組103將單一 資料矩陣內各矩陣陣列之資料進行分類將於下圖2進行詳細描述。 The matrix classification storage module 103 is configured to classify the data in each matrix array in a single data matrix according to the data features in each matrix array, and place the matrix array of each classification in the corresponding folder, and The folder is encrypted and stored in the hard disk 12. The encryption of the folder is performed by using a common encryption method to protect the security of the data. In this embodiment, the matrix classification storage module 103 will be single. The classification of the data of each matrix array in the data matrix will be described in detail in Figure 2 below.

如圖2所示,係單一資料矩陣內複數矩陣陣列分類資料之示意圖。本實施例中,假設建置了九個矩陣陣列構成一單一資料矩陣,用於儲存電子零件之佈線繪圖中所包含之九類資訊資料。該九個矩陣陣列分別為矩陣陣列1至矩陣陣列9,每一矩陣陣列分別儲存同類資料特徵之字串資料。矩陣陣列1:Parserm矩陣_類別1,儲存有第一類別之資料,其包含電子零件之版本、日期等資訊。矩陣陣列2:Structure矩陣_類別2,儲存有第二類別之資料,其包含PCB板空間邊界、PCB板層結構等資訊。矩陣陣列3:Placement矩陣_類別3,儲存有第三類別之資料,其包含各電子零件於PCB板上之座標位置資訊。矩陣陣列4:Library矩陣_類別4,儲存有第四類別之資料,其包含各電子零件於PCB板上之腳位(Pin)定義資訊、座標位置旋轉資訊。矩陣陣列5:PartLibrary矩陣_類別5,儲存有第五類別之資料,其包含各電子零件於PCB板上之穿孔(Via)資訊、及零件輪廓資訊。矩陣陣列6:Network矩陣_類別6,儲存有第六類別之資料,其包含PCB板上所有佈線(Netlist)之線寬資訊,及各佈線連接到各腳位Pin之走線資訊。矩陣陣列7:Writing矩陣_類別7,儲存有第七類別之資料,其包含PCB板上所有線寬與走線之間之幾何座標位置資訊。矩陣陣列8:Testpiont矩陣_類別8,儲存有第八類別之資料,其包含被測試電子零件於PCB板上之測試點位置座標資訊。矩陣陣列9:Color矩陣_類別9,儲存有第九類別之資料,其包含各電子零件於佈線繪圖上之RGB顏色定義資訊。矩陣分類儲存模組103按照上述九類矩陣陣列中之特徵資訊於單一資料矩陣內進行平行處理之 搜尋與分類時,將各自同類資訊放置於對應之矩陣陣列中。 As shown in FIG. 2, it is a schematic diagram of the classification data of the complex matrix array in a single data matrix. In this embodiment, it is assumed that nine matrix arrays are constructed to form a single data matrix for storing nine types of information materials included in the wiring drawing of the electronic parts. The nine matrix arrays are matrix array 1 to matrix array 9, respectively, and each matrix array stores string data of the same data feature. Matrix Array 1: Parserm Matrix _ Category 1, stores the first category of information, including the version, date and other information of the electronic parts. Matrix Array 2: Structure Matrix _ Category 2, which stores information of the second category, which includes information such as PCB board space boundaries and PCB layer structure. Matrix Array 3: Placement Matrix _ Category 3, which stores the third category of information, which contains information on the coordinate position of each electronic component on the PCB. Matrix Array 4: Library Matrix _ Category 4 stores the data of the fourth category, which includes pin definition information and coordinate position rotation information of each electronic component on the PCB. Matrix Array 5: PartLibrary Matrix _ Category 5, stores the fifth category of information, which contains the Via (Via) information of each electronic component on the PCB, and part contour information. Matrix Array 6: Network Matrix _ Category 6, stores the sixth category of data, which contains the line width information of all the wiring (Netlist) on the PCB, and the routing information of each wiring connected to each pin Pin. Matrix Array 7: Writing Matrix _ Category 7, stores the seventh category of data, which contains information on the geometric coordinates of all line widths and traces on the PCB. Matrix Array 8: Testpiont Matrix _ Category 8, which stores the eighth category of data, which contains the coordinates of the test point location coordinates of the tested electronic components on the PCB. Matrix Array 9: Color Matrix _ Category 9, stores the ninth category of data, which contains RGB color definition information for each electronic part on the wiring drawing. The matrix classification storage module 103 performs parallel processing in a single data matrix according to the feature information in the above nine types of matrix arrays. When searching and sorting, place the same kind of information in the corresponding matrix array.

如圖3所示,係本發明資料結構化處理方法較佳實施例之流程圖。步驟S30,資料讀取模組101從資料庫2中讀取*.DSN檔案中之原始資料。本實施例中,所述之原始資料係指電子產品進行電路佈線之設計繪圖中各電子零件之資訊資料,該電子產品之零件資訊以*.DSN檔案格式儲存於資料庫2中。 3 is a flow chart of a preferred embodiment of the data structure processing method of the present invention. In step S30, the data reading module 101 reads the original data in the *.DSN file from the database 2. In the embodiment, the original data refers to the information of each electronic component in the design drawing of the circuit layout of the electronic product, and the part information of the electronic product is stored in the database 2 in the *.DSN file format.

步驟S31,資料讀取模組101將從*.DSN檔案中讀取之原始資料以字串形式儲存於一暫時變數TEMP內。步驟S32,資料讀取模組101依據*.DSN檔案之純文字檔案格式中之換行標記分割每一行,並從第一行開始將每一行加上行號標記,其包括第一行標記、第二行標記直至最後一行之結束標記。步驟S33,資料讀取模組101初始化一用於當讀取暫時變數TEMP內資料時指向每一行字串之資料讀取指針。 In step S31, the data reading module 101 stores the original data read from the *.DSN file in a string form in a temporary variable TEMP. Step S32, the data reading module 101 divides each line according to the newline mark in the plain text file format of the *.DSN file, and adds a line number mark to each line from the first line, which includes the first line mark and the second line. The line is marked until the end of the last line. In step S33, the data reading module 101 initializes a data reading pointer for each line string when reading the data in the temporary variable TEMP.

步驟S34,資料矩陣構建模組102構建一矩陣陣列,並從暫時變數TEMP內讀取與矩陣陣列儲存容量值(例如:10000行字串)相等之字串放置於該矩陣陣列中。其中,資料矩陣構建模組102如何構建矩陣陣列將於下圖4中詳細進行描述。 In step S34, the data matrix construction module 102 constructs a matrix array, and reads a string equal to the matrix array storage capacity value (for example, 10000 line string) from the temporary variable TEMP and places the string in the matrix array. How the data matrix construction module 102 constructs the matrix array will be described in detail in FIG. 4 below.

步驟S35,資料矩陣構建模組102判斷資料讀取指針指向暫時變數TEMP內之行號標記是否為結束標記。若資料讀取指針指向暫時變數TEMP內之行號標記不是結束標記,則流程轉向步驟S34,資料矩陣構建模組102重新構建另外一矩陣陣列直至暫時變數TEMP內之所有資料都讀取完畢。若資料讀取指針指向暫時變數TEMP內之行號標記是結束標記,步驟S36,資料矩陣構建模組102將構建之各矩陣陣列合併成為單一資料矩陣。 In step S35, the data matrix construction module 102 determines whether the data read pointer points to the line number mark in the temporary variable TEMP is an end mark. If the data read pointer points to the line number mark in the temporary variable TEMP is not the end mark, the flow moves to step S34, and the data matrix construction module 102 reconstructs another matrix array until all the data in the temporary variable TEMP is read. If the data read pointer points to the line number mark in the temporary variable TEMP is the end mark, in step S36, the data matrix construction module 102 merges the constructed matrix arrays into a single data matrix.

步驟S37,矩陣分類儲存模組103根據各矩陣陣列內之資料特徵於單一資料矩陣中將各矩陣陣列內之資料進行分類。如圖2所示將各矩陣陣列分類為矩陣陣列1至矩陣陣列9。步驟S38,矩陣分類儲存模組103將各分類之矩陣陣列放置於對應之資料夾中,並將資料夾進行加密後儲存於硬碟12中,以便保護資料之安全性,所述之對資料夾進行加密採用通用之加密方式。 In step S37, the matrix classification storage module 103 classifies the data in each matrix array in a single data matrix according to the data features in each matrix array. Each matrix array is classified into a matrix array 1 to a matrix array 9 as shown in FIG. Step S38, the matrix classification storage module 103 places the matrix array of each classification in the corresponding folder, encrypts the data folder and stores it in the hard disk 12, so as to protect the security of the data, the pair of folders Encryption uses a common encryption method.

如圖4所示,係圖3中步驟S34之構建每一矩陣陣列之細化流程圖。步驟S341,資料矩陣構建模組102構建一矩陣空間變數VAR,並設定該矩陣空間變數VAR之儲存容量值,例如設定該矩陣空間變數VAR之儲存容量值為10000行。步驟S342,資料矩陣構建模組102根據暫時變數TEMP內之行號標記依次讀取暫時變數TEMP內之字串資料並放置到矩陣空間變數VAR中。步驟S343,資料矩陣構建模組102將已放置於矩陣空間變數VAR中相應之一行字串資料從暫時變數TEMP內清除,並控制資料讀取指針指向暫時變數TEMP內下一行之字串資料。 As shown in FIG. 4, a refinement flowchart of each matrix array constructed in step S34 in FIG. 3 is shown. In step S341, the data matrix construction module 102 constructs a matrix space variable VAR, and sets a storage capacity value of the matrix space variable VAR. For example, the storage capacity value of the matrix space variable VAR is set to 10000 rows. In step S342, the data matrix construction module 102 sequentially reads the string data in the temporary variable TEMP according to the line number mark in the temporary variable TEMP and places it into the matrix space variable VAR. In step S343, the data matrix construction module 102 clears the corresponding one of the row string data that has been placed in the matrix space variable VAR from the temporary variable TEMP, and controls the data read pointer to point to the string data of the next row in the temporary variable TEMP.

步驟S344,資料矩陣構建模組102判斷矩陣空間變數VAR中儲存之字串列數是否小於或等於設置之儲存容量值。若矩陣空間變數VAR中儲存之字串列數小於設置之儲存容量值,則流程轉向步驟S342繼續讀取暫時變數TEMP內之字串資料。步驟S345,若矩陣空間變數VAR中儲存之字串列數等於設置之儲存容量值,則資料矩陣構建模組102根據矩陣空間變數VAR中儲存之資料特徵將該矩陣空間變數VAR儲存為對應之矩陣陣列。步驟S346,資料矩陣構建模組102清除矩陣空間變數VAR中之字串資料為空矩陣空間變數,以便釋放電腦1之記憶體及中央處理器11之運算資源。 In step S344, the data matrix construction module 102 determines whether the number of string columns stored in the matrix space variable VAR is less than or equal to the set storage capacity value. If the number of string columns stored in the matrix space variable VAR is less than the set storage capacity value, the flow proceeds to step S342 to continue reading the string data in the temporary variable TEMP. Step S345, if the number of string columns stored in the matrix space variable VAR is equal to the set storage capacity value, the data matrix construction module 102 stores the matrix space variable VAR as a corresponding matrix according to the data features stored in the matrix space variable VAR. Array. Step S346, the data matrix construction module 102 clears the string data in the matrix space variable VAR into an empty matrix space variable, so as to release the memory of the computer 1 and the computing resources of the central processing unit 11.

本發明所述之資料結構化處理系統及方法,可以針對原始資料庫中之大量資料(例如電子電路板繪圖中之電子零件資訊)進行有效之資料分類,並將分類後各類繪圖物件之空間幾何座標等資料結構重新矩陣化後儲存,使得未來應用該矩陣化後之資料時可以大幅提升讀寫資料速度及運算速度能力,節省計算系統之記憶體及運算資源。經過本發明所述之資料結構化處理系統及方法矩陣化後之資料可以應用於信號仿真,自製CAD軟體之開發,PCB板之電路設計及自動化製造及測試等領域。 The data structured processing system and method of the present invention can perform effective data classification on a large amount of data in the original data database (for example, electronic component information in an electronic circuit board drawing), and space the various types of drawing objects after classification. The data structure such as geometric coordinates is re-matrixed and stored, so that the data of the read and write data speed and the computing speed can be greatly improved when the matrixed data is applied in the future, and the memory and computing resources of the computing system are saved. The data obtained by the data structure processing system and method described in the present invention can be applied to signal simulation, development of self-made CAD software, circuit design of PCB board, and automated manufacturing and testing.

以上所述僅為本發明之較佳實施例而已,且已達廣泛之使用功效,凡其他未脫離本發明所揭示之精神下所完成之均等變化或修飾,均應包含在下述之申請專利範圍內。 The above is only the preferred embodiment of the present invention, and has been used in a wide range of applications. Any other equivalent changes or modifications which are not departing from the spirit of the present invention should be included in the following claims. Inside.

1‧‧‧電腦 1‧‧‧ computer

10‧‧‧資料結構化處理系統 10‧‧‧Data Structured Processing System

101‧‧‧資料讀取模組 101‧‧‧ data reading module

102‧‧‧資料矩陣構建模組 102‧‧‧Data Matrix Building Module

103‧‧‧矩陣分類儲存模組 103‧‧‧Matrix classification storage module

11‧‧‧中央處理器 11‧‧‧Central processor

12‧‧‧硬碟 12‧‧‧ Hard disk

2‧‧‧資料庫 2‧‧‧Database

Claims (10)

一種資料結構化處理系統,運行於電腦中,該電腦連接一儲存有需要進行資料結構化處理之原始資料之資料庫,所述之資料結構化處理系統包括:資料讀取模組,用於從資料庫中讀取原始資料,將原始資料以字串形式儲存於一暫時變數內,依據純文字檔案格式之換行標記將暫時變數內之字串分割成每一行,並從第一行開始將每一行加上行號標記;資料矩陣構建模組,用於構建複數矩陣陣列,並設置每一矩陣陣列之儲存容量值,根據每一矩陣陣列之儲存容量值從暫時變數內讀取與儲存容量值相等之字串儲存於該矩陣陣列中,及將構建之各矩陣陣列合併成為單一資料矩陣;及矩陣分類儲存模組,用於根據各矩陣陣列內之資料特徵於單一資料矩陣內將各矩陣陣列中之資料進行分類,將各分類之矩陣陣列放置於對應之資料夾,及將資料夾進行加密後儲存於電腦之硬碟。 A data structured processing system is run in a computer, and the computer is connected to a database storing original data that needs to be structured by data processing. The data structured processing system includes: a data reading module for The original data is read in the database, and the original data is stored in a temporary variable in a string form. The line break in the plain text file format divides the string in the temporary variable into each line, and starts from the first line. A row plus a row number mark; a data matrix construction module for constructing a complex matrix array, and setting a storage capacity value of each matrix array, reading from the temporary variable and storing the storage capacity value according to the storage capacity value of each matrix array The string is stored in the matrix array, and the constructed matrix arrays are merged into a single data matrix; and the matrix classification storage module is configured to perform matrix arrays in a single data matrix according to data features in each matrix array The data is classified, the matrix array of each classification is placed in the corresponding folder, and the folder is encrypted and stored in Drive the brain. 如申請專利範圍第1項所述之資料結構化處理系統,所述之資料讀取模組還用於初始化一用於當讀取暫時變數內資料時指向每一行字串之資料讀取指針。 The data structuring processing system of claim 1, wherein the data reading module is further configured to initialize a data reading pointer for each line string when reading data in the temporary variable. 如申請專利範圍第2項所述之資料結構化處理系統,所述之資料矩陣構建模組還用於判斷所述之資料讀取指針指向暫時變數內之行號標記是否為結束標記,及將已放置於矩陣陣列內相應之一行字串資料從暫時變數內清除,並使資料讀取指針指向暫時變數內下一行之字串資料。 The data structure construction system of claim 2, wherein the data matrix construction module is further configured to determine whether the data read pointer points to a line number mark in the temporary variable is an end mark, and The corresponding one of the row string data that has been placed in the matrix array is cleared from the temporary variable, and the data read pointer is pointed to the string data of the next row in the temporary variable. 如申請專利範圍第1項所述之資料結構化處理系統,所述之原始資料係電子產品進行電路佈線繪圖中所包含之零件資訊資料,該電子產品之零件 資訊資料係以*.DSN檔案之格式儲存於所述之資料庫中。 The data structuring processing system according to claim 1, wherein the original data is a part information material included in a circuit wiring drawing of the electronic product, and the electronic product part Information materials are stored in the database in the form of *.DSN files. 如申請專利範圍第1項所述之資料結構化處理系統,所述之單一資料矩陣由複數矩陣陣列構成,每一矩陣陣列分別儲存具有相同資料特徵之字串資料。 The data structure processing system of claim 1, wherein the single data matrix is composed of a plurality of matrix arrays, each of which stores string data having the same data feature. 一種資料結構化處理方法,用於對儲存於資料庫內之原始資料進行資料結構化處理,該方法包括如下步驟:(a)從資料庫內讀取原始資料,並以字串形式儲存於一暫時變數內;(b)依據純文字檔案格式之換行標記將暫時變數內之字串分割成每一行,並從第一行開始將每一行加上行號標記;(c)初始化一用於當讀取暫時變數內資料時指向每一行字串之資料讀取指針;(d)構建一矩陣陣列,並從暫時變數內讀取與矩陣陣列儲存容量相等之字串放置於該矩陣陣列中;(e)判斷資料讀取指針指向暫時變數內之行號標記是否為結束標記;(f)若資料讀取指針指向暫時變數內之行號標記不是結束標記,則轉向步驟(d)重新構建一矩陣陣列;(g)若資料讀取指針指向暫時變數內之行號標記是結束標記,將構建之各矩陣陣列合併成為單一資料矩陣;(h)根據各矩陣陣列內之資料特徵於單一資料矩陣中將各矩陣陣列內之資料進行分類;及(i)將各分類之矩陣陣列放置於對應之資料夾中,並將資料夾進行加密後儲存。 A data structure processing method for data structure processing of original data stored in a database, the method comprising the following steps: (a) reading original data from the database and storing the data in a string form (b) The line break in the plain text file format divides the string in the temporary variable into each line, and adds each line to the line number mark from the first line; (c) initializes one for reading Pointing to the data read pointer of each line string when taking the data in the temporary variable; (d) constructing a matrix array, and reading the string equal to the storage capacity of the matrix array from the temporary variable and placing the string in the matrix array; Determining whether the data read pointer points to the line number mark in the temporary variable is an end mark; (f) if the data read pointer points to the line number mark in the temporary variable is not the end mark, then proceeds to step (d) to reconstruct a matrix array (g) if the data read pointer points to the line variable in the temporary variable is the end mark, the constructed matrix arrays are merged into a single data matrix; (h) according to the data characteristics in each matrix array Data within each data in the matrix array of a classification matrix; and (i) of the matrix array is placed in each category corresponding to the folder, and the folder is stored encrypted data. 如申請專利範圍第6項所述之資料結構化處理方法,所述之步驟(d)包括:(d1)構建一矩陣空間變數,並設定該矩陣空間變數之儲存容量值; (d2)根據暫時變數內之行號標記依次讀取暫時變數內之字串資料並放置到矩陣空間變數中;(d3)將已放置於矩陣空間變數內相應之一行字串從暫時變數內清除,並使資料讀取指針指向暫時變數內下一行之字串資料;(d4)判斷矩陣空間變數中之字串列數是否小於或等於設置之儲存容量值;(d5)若矩陣空間變數中之字串列數小於設置之儲存容量值,則步驟轉向步驟(d2)繼續讀取暫時變數內之字串資料;及(d6)若矩陣空間變數中之字串列數等於設置之儲存容量值,則根據矩陣空間變數中之資料特徵將該矩陣空間變數儲存為對應之矩陣陣列。 For the data structuring processing method described in claim 6, the step (d) includes: (d1) constructing a matrix space variable, and setting a storage capacity value of the matrix space variable; (d2) sequentially reading the string data in the temporary variable according to the line number mark in the temporary variable and placing it into the matrix space variable; (d3) clearing the corresponding one of the line strings already placed in the matrix space variable from the temporary variable And causing the data read pointer to point to the string data of the next row in the temporary variable; (d4) determining whether the number of string columns in the matrix space variable is less than or equal to the set storage capacity value; (d5) if the matrix space variable If the number of string columns is less than the set storage capacity value, the step moves to step (d2) to continue reading the string data in the temporary variable; and (d6) if the number of string columns in the matrix space variable is equal to the set storage capacity value, The matrix spatial variables are stored as corresponding matrix arrays according to the data features in the matrix spatial variables. 如申請專利範圍第7項所述之資料結構化處理方法,於所述之步驟(d6)後還包括清除矩陣空間變數中之字串資料之步驟。 For example, the data structuring processing method described in claim 7 further includes the step of clearing the string data in the matrix space variable after the step (d6). 如申請專利範圍第6項所述之資料結構化處理方法,所述之原始資料係電子產品進行電路佈線繪圖中所包含之零件資訊資料,該電子產品之零件資訊資料係以*.DSN檔案之格式儲存於所述之資料庫中。 For example, the data structure processing method described in claim 6 is the information material of the parts included in the circuit wiring drawing of the electronic product, and the information information of the parts of the electronic product is *.DSN file The format is stored in the database described. 如申請專利範圍第6項所述之資料結構化處理方法,所述之單一資料矩陣由複數矩陣陣列構成,每一矩陣陣列分別儲存具有相同資料特徵之字串資料。 The data structure processing method according to claim 6, wherein the single data matrix is composed of a complex matrix array, and each matrix array stores string data having the same data feature.
TW098112926A 2009-04-17 2009-04-17 System and method for structuring data TWI450112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW098112926A TWI450112B (en) 2009-04-17 2009-04-17 System and method for structuring data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098112926A TWI450112B (en) 2009-04-17 2009-04-17 System and method for structuring data

Publications (2)

Publication Number Publication Date
TW201039152A TW201039152A (en) 2010-11-01
TWI450112B true TWI450112B (en) 2014-08-21

Family

ID=44995338

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098112926A TWI450112B (en) 2009-04-17 2009-04-17 System and method for structuring data

Country Status (1)

Country Link
TW (1) TWI450112B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6314437B1 (en) * 1997-09-30 2001-11-06 Infraworks Corporation Method and apparatus for real-time secure file deletion
US20020196402A1 (en) * 2001-06-22 2002-12-26 International Business Machines Corporation Passive drive matrix display
TW200636511A (en) * 2005-02-15 2006-10-16 Infomato Crosslink data structure, crosslink database, and system and method of organizing and retrieving information
US20070294502A1 (en) * 2006-06-14 2007-12-20 Bernard Karl Gunther Lookup table array compression and indexing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6314437B1 (en) * 1997-09-30 2001-11-06 Infraworks Corporation Method and apparatus for real-time secure file deletion
US20020196402A1 (en) * 2001-06-22 2002-12-26 International Business Machines Corporation Passive drive matrix display
TW200636511A (en) * 2005-02-15 2006-10-16 Infomato Crosslink data structure, crosslink database, and system and method of organizing and retrieving information
US20070294502A1 (en) * 2006-06-14 2007-12-20 Bernard Karl Gunther Lookup table array compression and indexing

Also Published As

Publication number Publication date
TW201039152A (en) 2010-11-01

Similar Documents

Publication Publication Date Title
US8516418B2 (en) Application of a relational database in integrated circuit design
CN106662980A (en) System And Method For Distributed Computing In Non-Volatile Memory
Ajwani et al. A computational study of external-memory BFS algorithms
JP5852361B2 (en) Apparatus and method for developing a bill of materials
CN101853263B (en) Data structuralizing system and method
Baker et al. An architecture for efficient hardware data mining using reconfigurable computing systems
Alpert et al. Placement: Hot or not?
CN102207956A (en) Database management method, database management system and program thereof
US20170083646A1 (en) Method for modifying computer-based modeling
JP5898584B2 (en) Hexahedral mesh generator
US20110153674A1 (en) Data storage including storing of page identity and logical relationships between pages
CN103425829B (en) Method for rapidly reading layout
TWI450112B (en) System and method for structuring data
US20050108672A1 (en) Method of generating a physical netlist for a hierarchical integrated circuit design
JP4886266B2 (en) Document search method, document search system, and document search program
Dhar et al. Detailed placement for modern FPGAs using 2D dynamic programming
CN112464636B (en) Constraint file comparison method and device, electronic equipment and storage medium
Yampaka et al. Spatial join with r-tree on graphics processing units
Chen et al. Sparsity-oriented sparse solver design for circuit simulation
TW201310243A (en) System and method for outputting measurement data
EP4038536A1 (en) Quantum computing device model discretization
KR101141200B1 (en) Design parameter managing method, design parameter managing system, program and computer readable recording medium
JPWO2009044486A1 (en) Method for sorting tabular data, multi-core type apparatus, and program
Jo et al. Data locality in graph engines: Implications and preliminary experimental results
Prakash et al. R data structures and algorithms

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees