The Q&A Community for Students

MindStudy, question and answer site designed to help students, to help each other:
To ask, to learn, to share, to grow.

Ask Questions

Get the right answers. Fast

Answer Questions

Submit answers for community.

Be Somebody's Hero

Pat yourself on the back. You deserve it.

All Questions

524 questions

1034 views

What do you mean by a Handle? Give example. When a grammar is called ambiguous? Is there any technique to remove ambiguity? Explain with an example. What is the reduce-reduce conflict in LR parser? What are various data structures used for symbol table construction?

A handle of a string is a substring that matches the right side of a production, and whose reduction to the non-terminal on the left side of the production represents one step along the reverse of a rightmost derivation.

Demo Teacher
added 2 years ago
981 views

Describe various actions of a shift reduce parsers.

Actions of shift-reduce parsers: A shift-reduce parser works by doing some combination of Shift steps and Reduce steps, hence the name.

Demo Teacher
added 2 years ago
1017 views

What is the difference between a database and a table? Why are entity integrity and referential integrity important in a database?

Difference between database and a table: A table is an object inside a database. A database has tables of data, views, indexes and programs. A database can have 10 or thousands of tables.

Demo Teacher
added 2 years ago
981 views

Explain two-phase locking protocol.

In a multiprogramming environment where multiple transactions can be executed simultaneously,

Demo Teacher
added 2 years ago
954 views

Write short notes on the following:

  • Armstrong’s Axioms
  • Outer join

Armstrong’s Axioms: An inference axiom is a rule that states if a relation satisfies certain Functional Dependencies (FDs) then it must satisfy certain other FDs.

Demo Teacher
added 2 years ago
915 views

Write short notes on the following:

  • View Serializability
  • Codd’s Rules

View Serializability Let S and S0 be two schedules with the same set of transactions. S and S0 are view equivalent if the following three conditions are met:

Demo Teacher
added 2 years ago
1475 views

Describe the wait-die and wound-wait protocols for deadlock prevention. Define three concurrency problems: dirty read, non-repeatable read, phantoms.

We can prevent deadlocks by giving each transaction a priority and ensuring that lower priority transactions are not allowed to wait for higher priority transactions (or vice versa).

Demo Teacher
added 2 years ago