If one were to implement a tree using a 4GL like C#, and storing it in a database, such as SQL Server 2008, what would the schema/design look like?
In other words, what role would the database play in such an implementation?
There are several options:
NOTE: In the case of the suffix array, you won't be storing any characters, you'd just store the indexes describing each element, something like this:
CREATE TABLE SUFFIX_ARRAY (
ORDER INT PRIMARY KEY, -- Position in the suffix array.
START INT NOT NULL, -- Position of the starting character of the suffix within the target string.
LONGEST_COMMON_PREFIX INT NOT NULL -- If useful for your application.
)
You'd also have to separately store the "target" string (e.g. in a CLOB in another table).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With