Skip to main content

Questions tagged [database-theory]

the analytic study of ways in which information is efficiently and effectively stored to and retrieved from computer systems.

Filter by
Sorted by
Tagged with
1 vote
1 answer
161 views

A question that appeared in the Competitive Exam (GATE CS 2025, Set 2) in India: An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account $A$ ...
https_guru's user avatar
1 vote
0 answers
45 views

Let $S_{1}$ and $S_{2}$ ​be two schedules over the same set of transactions. If both schedules have the same precedence graph, does it follow that $S_{1}$ and $S_{2}$ are conflict equivalent. I think ...
Dexter Mandark's user avatar
0 votes
1 answer
71 views

I find the proof in Database, the complete book, 2nd edition on Closure algorithm confusing. It is too wordy and seems to assume something about the database while we're considering any database. The ...
MathInquirer's user avatar
2 votes
0 answers
38 views

It is known that deciding whether a linear recursive datalog rule is one-bounded is NP-hard [1]. That is, given a rule such as: "p(x,y) :- q(x), p(y,z), r(z, ...) ,...", where the predicate ...
441Juggler's user avatar
0 votes
1 answer
121 views

I did not find an answer to this question here on stack exchange. Are relational databases optimal in terms of time complexity and space complexity?Are there known lower bounds on the time complexity ...
user avatar
0 votes
0 answers
33 views

If I understand it correctly, in first-order logic, if $\phi(a,b) \models \psi(a,b)$, where $\phi$ and $\psi$ are first-order logic formulas and $a$ and $b$ are constants, then, $\phi(a,a) \models \...
441Juggler's user avatar
0 votes
1 answer
106 views

I'm currently studying enumeration algorithms and random order enumeration algorithms (enumeration results in random order) and trying to understand their downstream applications in real-world ...
Chen Pengyu's user avatar
1 vote
0 answers
44 views

To find the Superkeys in the Relation with given Candidate keys, we can use Inclusion-Exclusion Principle $ |A_1 \cup A_2 \cup \dots \cup A_n| = \sum_{i=1}^n |A_i| - \sum_{1 \leq i < j \leq n} |A_i ...
Vedant Khandelwal's user avatar
0 votes
2 answers
121 views

From Semi-structured data - Wikipedia: Semi-structured data is a form of structured data that does not obey the tabular structure of data models associated with relational databases or other forms of ...
Ooker's user avatar
  • 123
-1 votes
1 answer
37 views

I am working on this exercise In question c) it says that "a prescription clearly identifies the drug" so I assumed that the relationship "identifies" between drug and prescription ...
Root Groves's user avatar
0 votes
0 answers
43 views

I want to make a Galaxy schema of a Restaurant. There are 2 fact tables sales and purchases. sales are related to customer and purchases to supplier of ingredients. Now my question is how can i make ...
MUHMMAD MURTAZA's user avatar
-1 votes
2 answers
259 views

I am studying this ERD: The bank and the customer are obviously strong entities because they are a bank and a person. The bank branch is clearly a weak entity because it depends on the bank ...
Volpina's user avatar
  • 95
1 vote
1 answer
252 views

Consider the following schedule - T1 T2 R(A) W(A) R(A) W(A) Commit Commit I understand that this schedule is non-recoverable, because if ...
Kushagr Jaiswal's user avatar
-4 votes
1 answer
102 views

Give a real world, normalized example where table T1 has primary key (A, B), T2 has primary key (B, C) and T3 has primary key (A, C) and table 4 has a primary key (A, B, C) where (A, B) is a foreign ...
molikto's user avatar
  • 75
0 votes
0 answers
57 views

...
mask22kksk's user avatar
-1 votes
1 answer
169 views

I have read that 1NF, 2NF and 3NF decompositions are lossless and dependency-preserving. Consider this example on a relation $R(A,B,C,D)$ with functional dependencies set as $FD =${ $AB \rightarrow CD,...
Arun Madhav's user avatar
0 votes
1 answer
156 views

In a database systems course, we have been presented with the following definition for third normal form (3NF): A relation $R$ is in 3NF means: a nontrivial dependency $A_1,\dots,A_n\to B_1,\dots B_m$...
MiddleEasternPrince's user avatar
0 votes
0 answers
62 views

I am creating a database on students' interests using the Entity-Relationship Model for a University assignment. Should I implement the circled stuff as attribute, or an entity set?
Suchet Saxena's user avatar
0 votes
1 answer
426 views

Consider the following schedule S.Is S conflict–serializable? Append the commit operations of these transactions at the end of the schedule in an appropriate order such that S is recoverable. How many ...
bigstreet's user avatar
2 votes
1 answer
159 views

I have a bag of sets which overlap, and I am looking for an efficient (if possible, optimal) way to leverage that overlap to store those sets with minimal space requirements. For example, consider ...
Aegis's user avatar
  • 121
1 vote
4 answers
143 views

For example (and this is not my use case), imagine there is a set of 50 000 random natural numbers represented in decimal with 8 digits (in the range 00 000 000 to 99 999 999). We could index the set ...
Karl F.'s user avatar
  • 13
-1 votes
1 answer
72 views

I am sure this question has been asked, but I was unable to search for it in a manner that would give me the solution. So I will present it here. I seen this in another database years ago, and I want ...
Rick Scorpio's user avatar
0 votes
1 answer
163 views

This is a bit of a theoretical question. I would like to know how to call the principle described below, in proper computer science terms, or math terms. Let's say we have a database in which one ...
Lucas Johnston's user avatar
2 votes
0 answers
49 views

In relational databases, what are the practical or theoretical ways to reduce the size and spatial complexity of intermediate indexes or tables* at execution time (so for example to reduce the size of ...
Heiz's user avatar
  • 21
0 votes
0 answers
73 views

There is a relational schema :- person (id, name, phone no, address, email, position) so there will be the following functional dependencies ...
partyHatGuy's user avatar
0 votes
0 answers
55 views

After reading a lot of materials related to the Primary key and Unique key, I am in doubt. Let us consider a primary key (AB) in table R (ABCDE). AB together can not be null as AB is a primary key. ...
A Paul's user avatar
  • 186
1 vote
2 answers
1k views

I'm looking for some resources on what happens on the low-level with databases. I've found that indexed data is looked up using b+ trees, but could not find anything on non-indexed columns. Is there ...
seok's user avatar
  • 11
0 votes
0 answers
253 views

I have the following question: Consider relation R(A, B, C, D, E, F, H) with the following functional dependencies: A --> D, AE --> H, DF --> BC, E --> C, H --> E Consider three ...
rigidweight's user avatar
2 votes
0 answers
55 views

"Fundamental of Database Systems", 3rd ed. by Elmasri and Navathe, page 136 says: "We can physically order the records of a file on disk based on the values of one of their fields [...]&...
GuestUser's user avatar
1 vote
1 answer
1k views

Say you are editing a document like a 1000 page book. There are 20 authors all working furiously to edit the book. Every day they are merging their changes 2 or 3 times with the main branch. According ...
Lance Pollard's user avatar
2 votes
1 answer
323 views

I have been looking around for a few days trying to find a clear and concise description of how, at a technical/implementation level, how distributed joins work, but haven't found much. The best so ...
Lance Pollard's user avatar
0 votes
1 answer
167 views

Given $R$=($A,B,C,D,E,G$), And $F_c$={$A$$\rightarrow$$E$ ,$E$$\rightarrow$$ACD$ ,$BD$$\rightarrow$$E$, $CD$$\rightarrow$$B$} Candidate keys are: $GA, GE, GDB, GCD$ Lets say I pick the FD $A$$\...
Omri Braha's user avatar
1 vote
0 answers
56 views

The screenshot is from Georgia Tech's CS-6400. The instructor was talking about inheritance of Sub-Types and Super-Types. My question is, why are Male and ...
Erin's user avatar
  • 113
0 votes
1 answer
217 views

I know that an inverted index is a mapping from words -> documents. In the database I'm using, I'm able to do a search for ...
yrom1's user avatar
  • 3
1 vote
1 answer
167 views

I'm reading though The Algorithmic Foundations of Differential Privacy and the authors define a database in a mathematically convenient way. Unfortunately I'm a little confused about what the ...
robtimus_prime's user avatar
3 votes
1 answer
152 views

The query-equivalence problem is undecidable. However there are theorem provers that attempt to solve instances of undecidable problems. I am curious how I could go about using an automatic theorem ...
himself000's user avatar
1 vote
0 answers
302 views

I have seen that most standard college textbooks of Database Management Systems use this method to classify whether a schedule is view serializable or not. I know the definitions of Conflict ...
Abhishek Ghosh's user avatar
1 vote
0 answers
1k views

$ \newcommand{\Set}[2]{% \{\, #1 \mid #2 \, \}% }$ I've been trying to find how to express relational division operation in tuple relational calculus. The only thing I found is this presentation ...
tomashauser's user avatar
0 votes
2 answers
595 views

Let's have a relation $R = (name, surname, age)$. I want to obtain a new relation with only the $name$ attribute. In relational algebra I would simply do $\Pi_{\mathrm{name}}(R)$ but in relational ...
tomashauser's user avatar
2 votes
1 answer
376 views

I want to implement an Index using a B+Tree as the underlying data structure. The index will have to support key sizes which are of order of my block size, what means I cannot save all the key as a ...
user5721565's user avatar
0 votes
1 answer
246 views

The definition given below is present in the exercise of the text Database System Concepts by Korth et. al. Let $\alpha$ and $\beta$ be sets of attributes such that $\alpha \rightarrow \beta$ holds, ...
Abhishek Ghosh's user avatar
1 vote
1 answer
205 views

Aggregation is an abstraction concept for building composite objects from their component objects. ... the possibility of combining objects that are related by a particular relationship instance into ...
thenewboston2's user avatar
1 vote
1 answer
265 views

When a user writes a SQL query it needs to be scanned, parsed and validated. The question is in which order these three operations occurs in the process? Scanning, Parsing, Validation or any other ...
Coreman's user avatar
  • 27
1 vote
0 answers
1k views

Let's for the sake of simplicity only focus on tuple relational calculus. Every relational algebra query can be broken down into the 5 atomic operations - projection, selection, set union, set ...
tomashauser's user avatar
0 votes
2 answers
434 views

Let's say that I am interested in discovering the smallest 5 numbers in a set of numbers. In SQL, this would work: ...
Chaos's user avatar
  • 111
0 votes
1 answer
170 views

I was going through the concept of database buffering from the Database System Concepts text by Korth et. al where I came across the excerpt below. The rules for the output of log records limit the ...
Abhishek Ghosh's user avatar
0 votes
1 answer
222 views

I was going through the "write-ahead logging (WAL) rule" from the Database System Concepts text by Korth et. al, where I came across the following excerpt: Strictly speaking, the WAL rule ...
Abhishek Ghosh's user avatar
2 votes
1 answer
180 views

I recently decided to review the B-tree chapter (chapter 18, p 486 in 3ed) in Introduction Algorithms, and found that they call pages what I always referred to as blocks or clusters: In order to ...
2xMax's user avatar
  • 121
0 votes
0 answers
145 views

I'm working on a project where I need to create search functionality that can efficiently search a list of data structures like: ...
user3238415's user avatar
0 votes
1 answer
122 views

I thought I understood BCFN until I bumped into this example from my course slides. A relation in a library database contains what books are currently borrowed by what users. The relation contains ...
user2891462's user avatar

1
2 3 4 5 6