Database Management Systems (Classroom Practice Booklet Solutions)

Similar documents
Database Management Systems (Solutions for Vol 1_Classroom Practice Questions)

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Northern India Engineering College, New Delhi Question Bank Database Management System. B. Tech. Mechanical & Automation Engineering V Semester

Database Management Systems Paper Solution

Sankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment

Functional Dependencies CS 1270

CS/B.Tech/CSE/New/SEM-6/CS-601/2013 DATABASE MANAGEMENENT SYSTEM. Time Allotted : 3 Hours Full Marks : 70

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Winter 2009 Lecture 4 - Schema Normalization

DATABASE MANAGEMENT SYSTEMS

Name :. Roll No. :... Invigilator s Signature : DATABASE MANAGEMENT SYSTEM

VIEW OTHER QUESTION PAPERS

Solutions to Final Examination

Database Management

Unit IV. S_id S_Name S_Address Subject_opted

Normalization. Murali Mani. What and Why Normalization? To remove potential redundancy in design

Techno India Batanagar Computer Science and Engineering. Model Questions. Subject Name: Database Management System Subject Code: CS 601

GUJARAT TECHNOLOGICAL UNIVERSITY

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Fall 2009 Lecture 3 - Schema Normalization

DATABASE MANAGEMENT SYSTEM

Fundamentals of Database Systems

BCNF. Yufei Tao. Department of Computer Science and Engineering Chinese University of Hong Kong BCNF

Database Management

CS 564 Final Exam Fall 2015 Answers

Schema Refinement & Normalization Theory 2. Week 15

SCHEMA REFINEMENT AND NORMAL FORMS

Babu Banarasi Das National Institute of Technology and Management

Relational model continued. Understanding how to use the relational model. Summary of board example: with Copies as weak entity

Objective. The goal is to review material covered in Chapters 1-5. Do the following questions from the book.

8) A top-to-bottom relationship among the items in a database is established by a

CSE 444, Winter 2011, Midterm Examination 9 February 2011

Normalization 03. CSE3421 notes

CSE 562 Database Systems

Midterm 2: CS186, Spring 2015

2011 DATABASE MANAGEMENT SYSTEM

INSTITUTE OF ENGINNERING & MANAGEMENT DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING 1 ST MID SEMESTER EXAMINATION, MARCH, 2017

The Relational Data Model

CSCI 127 Introduction to Database Systems

Examination examples

The University of British Columbia Computer Science 304 Practice Final Examination

CMSC 461 Final Exam Study Guide

CS2255 DATABASE MANAGEMENT SYSTEMS QUESTION BANK UNIT I

Draw A Relational Schema And Diagram The Functional Dependencies In The Relation >>>CLICK HERE<<<

The University of British Columbia

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

. : B.Sc. (H) Computer Science. Section A is compulsory. Attempt all parts together. Section A. Specialization lattice and Specialization hierarchy

The Relational Model and Normalization

Total No. of Questions :09] [Total No. of Pages : 02. II/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC Second Semester CSE/IT DBMS

Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10


SOLUTIONS TO THE FINAL EXAMINATION Introduction to Database Design Spring 2011

Unit 3 : Relational Database Design

Exam. Question: Total Points: Score:

Relational Design: Characteristics of Well-designed DB

McGill April 2009 Final Examination Database Systems COMP 421

Attach extra pages as needed. Write your name and ID on any extra page that you attach. Please, write neatly.

Birkbeck. (University of London) BSc/FD EXAMINATION. Department of Computer Science and Information Systems. Database Management (COIY028H6)

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called

Sample Exam for CSE 480 (2016)

CSE 544 Principles of Database Management Systems

CSCE 4523 Introduction to Database Management Systems Final Exam Fall I have neither given, nor received,unauthorized assistance on this exam.

UNIT 3 DATABASE DESIGN

QUIZ 1 REVIEW SESSION DATABASE MANAGEMENT SYSTEMS

In This Lecture. Normalisation to BCNF. Lossless decomposition. Normalisation so Far. Relational algebra reminder: product

COMP7640 Assignment 2

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Database Management System Prof. Partha Pratim Das Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Sample Exam for CSE 480 (2017) KEY

Data about data is database Select correct option: True False Partially True None of the Above

1. (a) Briefly explain the Database Design process. (b) Define these terms: Entity, Entity set, Attribute, Key. [7+8] FIRSTRANKER

Typical relationship between entities is ((a,b),(c,d) ) is best represented by one table RS (a,b,c,d)

Introduction to Database Systems. Announcements CSE 444. Review: Closure, Key, Superkey. Decomposition: Schema Design using FD

Chapter 8: Relational Database Design

[18 marks] Consider the following schema for tracking customers ratings of books for a bookstore website.

Homework 6: FDs, NFs and XML (due April 13 th, 2016, 4:00pm, hard-copy in-class please)

The University of Nottingham

Database Applications (15-415)

Database Design Theory and Normalization. CS 377: Database Systems

Total No. of Questions :09] [Total No. of Pages : 02

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38

EECS-3421a: Test #2 Queries

ROEVER ENGINEERING COLLEGE

This lecture. Databases -Normalization I. Repeating Data. Redundancy. This lecture introduces normal forms, decomposition and normalization.

King Fahd University of Petroleum and Minerals

3.1. Keys: Super Key, Candidate Key, Primary Key, Alternate Key, Foreign Key

Databases -Normalization I. (GF Royle, N Spadaccini ) Databases - Normalization I 1 / 24

DATABASE MANAGEMENT SYSTEM SHORT QUESTIONS. QUESTION 1: What is database?

Exam. Question: Total Points: Score:

Solutions. Updated of 7

MaanavaN.Com DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING QUESTION BANK

The Relational Model

Relational Database Design (II)

Database Constraints and Design

CSIT5300: Advanced Database Systems

V. Database Design CS448/ How to obtain a good relational database schema

CT13 DATABASE MANAGEMENT SYSTEMS DEC 2015

Examination paper for TDT4145 Data Modelling and Database Systems

In This Lecture. Exam revision. Main topics. Exam format. Particular topics. How to revise. Exam format Main topics How to revise

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

CS127 Homework #3. Due: October 11th, :59 P.M. Consider the following set of functional dependencies, F, for the schema R(A, B, C, D, E)

Transcription:

Database Management Systems (Classroom Practice Booklet Solutions) 2. ER and Relational Model 4 ssn cid 01. Ans: (b) Professor Teaches course 02. Ans: (c) Sol: Because each patient is admitted into one ward, patient is a key to the relationship and semester of cardinality M : 1. 5 03. Ans: ssn cid Sol: 1 ssn cid Professor Teaches course Professor Teaches course 6 Semester ssn gid semid Professor Memberof Group 2 ssn cid Teaches semester Professor Teaches course course semester 3 ssn cid cid Professor Teaches course 04. Ans: (c) Sol: Set of attributes which contains a candidate key is said to be a super key. semester

: 2 : DBMS 05. Ans: (b) Sol: All the values present in Foreign key must present in primary key of the referenced relation. 06. Ans: (c) Sol: It violates referential integrity constraint. 07. Ans: (c) Sol: On removal of row (2,4), row (5,2) and (7,2) must also be deleted as they depend on value 2. On removal of row (5,2), row (9,5) must also be deleted as it depends on value 5. 08. Ans: 0 Sol: When <3, 8> is deleted, its related tuples in T 2 is (8, 3) and 3 is to set null. Hence the number of additional tuples to delete is 0 09. Ans: 19. Sol: For (StudentName, StudentAge) to be a key, all the combinations of these two attributes must unique. 10. Ans: (a) Sol: As the key constraint from professor, the maximum number of tuples possible in Teaches is number of tuples in professor. 11. Ans: (a) Sol: Professor Teaches Course 12. Ans: (a) Sol: As C, A and B in total participation with R 1 and R 3 and there is key constraint, all these are represented with one relation and R 2 is represented separately one relation. 13. Ans: (b) Sol: There are some tuples of course may not participate with any tuple of professor, then cid is a key for the relation. 14. Ans: (a) Sol: (AR 1 B) will be one table as there is total participation and key constraint. (CR 2 ) will be the second table as there is a key constraint. 15. Ans: (b) Sol: As we get key and participation constraint from course to registration, therefore the number of tuples in registration will be equal to the tuples in the course table. 16. Ans: (b) Sol: Strong entities E1 and E2 are represented as separate tables, in addition to that many to many relationship (R2) must be converted as separate table by having primary key of E1 and E2 as foreign key. One to many relationship must be transferred to many side table by having primary key of one side

: 3 : CSIT Postal Coaching Solutions as foreign key. Hence we will have minimum of 3 tables. 17. Ans: (b) Sol: Strong entities E1 and E2 are converted as separate tables. Since A23 is a multi valued attribute it should also be converted as separate table. Relationship R is transferred to m side (E2). 18. Ans: (b) Sol: M, P are strong entries hence they must be represented by separate tables. M table is modified to include primary key of P side ( i.e P1). N is weak entity, and it is modified to include primary key of P (i.e P1). 19. Ans: (a) Sol: M and P are strong entities hence they must be represented as separate tables. To include R1, M table is modified to accommodate primary key of P side (i.e P1) as foreign key. N is weak entity, so modify N to accommodate primary key of P (i.e P1) as foreign key. Therefore tables are (M1, M2, M3, P1), (P1, P2), (N1, N2, P1). So correct answer is (M1, M2, M3, P1). 20. Ans: (b) 3. Functional Dependencies 01. Ans: (d) 02. Ans: (d) 03. Ans: (a) 04. Ans: (c) Sol: AF + = AFDE not ACDEFG as given. 05. Ans: (c) Sol: An functional dependency X Y is said to be trivial iff Y X. 06. Ans: (b) Sol: CD + from functional dependencies (FDs) = CDEAB, it includes RHS attributes AC so it can be derived from FDs BD + from functional dependencies (FDs) = BD only, RHS attributes CD are not included in the closure hence it can not be derived BC + from functional dependencies (FDs) = BCD EA, it includes RHS attributes CD, so it can be derived from FDs AC + from functional dependencies (FDs) = ACBDE, it includes RHS attributes BC so it can be derived from FDs 07. Ans: (c) Sol: AC + contains I then AC I dependency is possible.

: 4 : DBMS 08. Ans: (b) Sol: As K is independent attribute, key is ABDK. 09. Ans: (d) Sol: ABD + = A, B, C, D, E. 10. Ans: (b) Sol: ACEH + contains all the attributes of R. 11. Ans: (d) Sol: Closure of AEH + = BEH + = DEH + = A, B, C, D, E, H. If any closure includes all attributes of a table then it can become candidate key of the table. Closure of AEH, BEH, DEH includes all attributes of table hence they are candidate keys. 12. Sol: CK: ACD, BCD, ECD. 13. Ans: 6 Sol: ABF, ADF, EBF, EDF, CBF, CDF. 18. Ans: (c) 19. Ans: (a) Sol: B can be deleted from AB C. A BC is redundant dependency. 20. Sol: AD CF C B Canonical set B E AD C C B Minimal set AB F B E 21. Sol: A BC AE H C D Minimal set D G E F 14. Ans: 2 15. Ans: (b) Sol: The number of super keys are A, B, C, AB, AC, BC, ABC. 16. Ans: (a) 17. Ans: (d)

01. : 5 : CSIT Postal Coaching Solutions Then decompose into 2NF 4. Normalization R 1 (ADEIJJ) R 2 (BFGH) Sol: 1. C.K = BD, Lossy, Dependency preserving 2. C.K = AB, CB, Loss-less, Not Dependency preserving 3. C.K = A, C, Loss-less, Dependency preserving 4. C.K = A, Loss-less, Not Dependency preserving 5. C.K = A, Lossy, Not Dependency preserving 02. Sol: (a) FD :{ AB C, B D} Where BD is partial Functional Dependency (b) FD: {ABC, C D} Where CD is Transitive Functional Dependency 03. Sol: R is in 1NF decompose to 2NF A + = {A, D, E, I, J} R 1 = 2NF B + = {B, F, G, H} R 2 = 2NF {A, B, C} R 3 BCNF R 1 (A D E I J) R 2 (B F G H) D + R 4 (D I J) R 5 (A E D) F + R 6 (F G H) R 7 (B F) R 3 (ABC) 3NF also in BCNF R 3 (ABC) R 4 (DIJ) R 5 (AED) R 6 (FGH) R 7 (BF) AB + is key. 04. Sol: Candidate key: AC A + = (ABE) R 1, C + = (CD) R 2 AC = R 3 05. Sol: (1) C D C A B C C.K: B, 2NF but not 3NF (2) 2NF but not 3NF as no partial dependency CK: BD. (3) R is in 3NF but not in BCNF D + = {D, A} R 1 R {DBC} R 2 Not D: P ABC D lost

: 6 : DBMS (4) C.K = A No. P.D 2NF R is in 2NF but not in BCNF & 3NF BC + = {BCD} R 1 = {ABC} R 2 (5) AB C AB D C A D B Candidate Keys = AB, CD, BC, AD R is in 3NF but not in BCNF. 09. Ans: (d) Sol: Relation R 1 satisfies A B, B C and C AB dependencies and all the determinants are super keys. Hence the relation is in BCNF. 10. Ans: (c) 11. Ans: (b) Sol: 1 represents Partial FD and 2 represents T.D 5. Structured Query Language (SQL) C+ {C, A} R 1 D+ {D, B} R 2 {C, D} R 3 Not D.P AB CD lost. 06. Ans: (b) Sol: Both the dependencies satisfies the 3NF definition. 07. Ans: (b) Sol: (Volume, Number) Year is a partial functional dependency. So, the given relation is in 1 NF but not in 2 NF. 08. Ans: (d) Sol: If all the determinants are super keys then the relation is in BCNF 01. Ans: (b) 02. Ans: (c) 03. Ans: (b) Sol: Select clause contains either aggregate function or the attributes that appear in group by clause. 04. Ans: (c) Sol: Union operator eliminates the duplicates. 05. Ans: (c) 06. Ans: (d) Sol: The inner query returns empty set, and any on empty set returns false always.

: 7 : CSIT Postal Coaching Solutions 07. Ans: (c) Sol: R 1 R 2 R 1 R 2 A B A C A B C 1 5 1 7 1 5 7 3 7 4 9 3 7 null 4 null 9 08. Ans: (b) 09. Ans: (a) Sol: all(empty) returns true always. 10. Ans: 7 Sol: The output of the query is Exercise - 01 ta.player Klose Ronaldo G muller Fontaine Pele Klismann Kocsis 01. Sol: Display the details of all hotels, located in London 02. Sol: Display name & address of all guests in ascending order of their name living in London. 03. Sol: Display the details of all rooms of price below 40 & type of the room is either D or F in ascending order of their prices. 04. Sol: Display all booking details whose check out time not specified. 05. Sol: Finds total price of all rooms of type D. 06. Sol: Find the number of guests who have a booking on 1 st august or in the month of august. 07. Sol: List the type & price of all rooms in Grosvenor hotel. 08. Sol: List all the guest details who have a booking for the current date in Grosvenor Hotel Select * from guest where guestno in ( ) &. hotelno = ( ) = operator when only 1 value is return. 09. Sol: List the details of all rooms at the Grosvenor hotel including the name of the guest staying in the room, if the room is occupied. 10. Sol: Finds total price of all rooms in Grosvenor hotel if the room is currently occupied.

: 8 : DBMS 11. Sol: Find number of rooms in each hotel located in London. 12. Sol: Find the maximum number of rooms booked in London of same type A 100(Room Type) B 200 C 150 D 75 Maximum 200. It displays total no. of bookings for the most popular room in city of London. 13. Sol: Find total price of all rooms, that are not currently booked in each hotel. Exercise - 02 01. Sol: SELECT * FROM Patient ORDER BY patname. 02. Sol: SELECT Count(patientNo), WardNo FROM Contains GROUP BY WardNo; 03. Sol: SELECT p.patientno, p.patname FROM Patient p, Contains c WHERE c.patientno = p.patientno AND admissiondate = today. 04. Sol: SELECT p.patientno, p.patname FROM Patient p, Ward w, Contains c WHERE w.wardno = c.wardno AND c.patientno = p.patientno AND wardname = Surgical. 05. Sol: SELECT p.patname FROM Patient p, Prescribed pr, Drug d WHERE pr.patientno = p.patientno AND pr.drugno = d.drugno AND drugname = Morphine. 06. Sol: SELECT SUM(((finishDate startdate) *unitsperday) * costperunit) AS totalcost FROM Patient p, Prescribed pr, Drug d WHERE pr.patientno = p.patientno AND pr.drugno = d.drugno AND drugname = Morphine AND patname = John Smith. 07. Sol: SELECT w.wardno, wardtype, noofbeds FROM Patient p, Ward w, Contains c WHERE w.wardno = c.wardno AND c.patientno = p.patientno AND admissiondate = today

: 9 : CSIT Postal Coaching Solutions GROUP BY wardno, wardtype, noofbeds HAVING COUNT(*) > 10 08. Sol: SELECT * FROM Patient p Left Join Prescribed pr ON pr.patientno = p.patientno. 6. Relational Algebra & Calculus 01. Ans: (b) 02. Ans: (d) Sol: Relational Algebra eliminate duplicates always. 03. Ans: (a) Sol: If A B holds, group by A results always groups with only one tuple. 04. Ans: (c) Sol: If (X=Y) Z then the expressions to be true. 05. Ans: (a) Sol: Π B (r1) Π C (r2) = is always true. Because B is foreign key referencing C, so C must be a primary key, B cannot have a value that is not available in C. Hence operation Π B (r1) Π C (r2) is always. 06. Ans: (a) Sol: Common column between tables R and S is attribute B. In table R B is primary key (BA, AC). In table S B is foreign key so join is performed on attribute B. Therefore maximum tuples possible in the output is equal to rows in Table S (as it has less number of rows, provided B values are not repeated in table S ). 07. Ans: (b) Sol: bal < 0 filter rows from account depositor from which we can operate on few rows to filter b city = Agra. 08. Ans: (d) Sol: Minus operator indicates rows available in LHS table but not in RHS table. In this expression, LHS table produces all female students, RHS table consists students with less marks hence it produces names of all girl students with more marks than all the boy students. 09. Ans: (c) Sol: P. duration = 3 months selects all projects of duration 3 months T. pname = P.name selects project names in the output.

: 10 : DBMS 10. Ans: (d) Sol: The relational algebra expression represents (all empid s) (empid s of employees whose age is below than some dependent age); results, set of empid s of employee whose age is greater than all of his/her dependent. 11. Ans: (a) Sol: SQL, Relational algebra, tuple relational calculus and Domain relational calculus all is representing the same. i.e., all these expressions representing to find the distinct names of all students who score more than 90% in the course numbered 107. 13. Sol: (a) (b) (c) T TEmployee M Manger M.Manager_ name' Jones' T.Person_ name M.Person_ name T E Employee M.manager_ name T.City E.City M Manager' Jones' E.person_ name M.person_ name M.person _ name T E Employee ' Jones' T.Manager _ name E.Manager _ name 12. Ans: (d) Sol: Minus operator indicates, rows available in LHS table but not in RHS table. In this expression, LHS table produces all female students, RHS table consists students with less marks hence it produces names of all girl students with more marks than all the boy students.

: 11 : CSIT Postal Coaching Solutions 7. Transaction & Concurrency Control 01. Ans: (d) Sol: Transaction T 3 perform read on A, which is updated by T 1 and committed before T 1 does. 02. Ans: (a) Sol: As R 3 (x) is dirty operations which read W 1 (x) and is committed before T 1. Hence schedule is non-recoverable. 03. Ans: (c) Sol: A recoverable schedule is one where for each pair of transactions T i and T j such that T j reads a data item previously written by T i, the commit operation of T i appear before the read operation of T j. 04. Ans: (d) Sol: In option d transaction T 2 performs dirty read. 05. Ans: (c) 06. Ans: (a) Sol: Construct the wait-for-graph, contains edges from T1 T2, T2 T3, and T4 T2 and there is no circular wait, hence no deadlock. 07. Ans: (a) Sol: The algorithm is wound-wait deadlock prevention strategy, hence deadlock free. As the killed transaction restarting with same time stamp, it is starvation free. 08. Ans: (d) 09. Ans: (d) Sol: Option (A) T 1 T 2 T 3 W(x) W(x) Option (B) T 1 T 2 T 3 W(x) W(x) T 1 T 2 T 3 W(x) Option (C) W(x) T 1 T 2 T 3 W(x) Option (D) W(x) T 1 T 2 T 3 T 1 T 2 T 3 T 1 T 2 T 3 T 1 T 2 T 3 Conflict Serializable

: 12 : DBMS 10. Ans: 3 Sol: (3-4-1-2), (3-1-4-2), (4-3-1-2) are serial schedule possible. 11. Ans: (c) Sol: T 1 T 2 T 3 R(A) W(A) R(A) W(A) W(A) Precedence graph is T 1 T 2 T 3 12. Ans: (d) Sol: S1 and S2 are conflict equivalent to serial schedule T2, T3, T1. S3 is not conflict equivalent as 2RA, 3WA (T2<T3) and 3WA, 2WA (T3<T2) are the conflict operations. There is no serial schedule that satisfies both T2<T3 and T3<T2. 13. Sol: (a) Not Conflict Serializable, Not View Serializable, Recoverable, Avoids Cascading aborts, Not strict. (b) Conflict Serializable, View serializable, Serializable, Recoverable, Cascading aborts, Not strict (c) Not Conflict Serializable, Not View Serializable, Not avoids cascading aborts, not strict, Recoverable, cascading aborts (d) Conflict Serializable, View serializable, Serializable, Recoverable, Avoids cascading aborts, Not strict (e) Not Conflict Serializable, Views serializable through Thomas write rule, Serializable, Recoverable, Avoids cascading aborts, Not strict (f) Conflict Serializable, View Serializable, Serializable, Recoverable, Avoids cascading aborts, Not strict

: 13 : CSIT Postal Coaching Solutions (g) Not Conflict Serializable, Not View serializable, Not Serializable, Not Recoverable, No need cascading aborts, Not strict (h) Conflict Serializable, View Serializable, Serializable, Not Recoverable, No need cascading aborts, Not strict (i) Conflict Serializable, View Serializable, Serializable, Recoverable, Avoid cascading aborts, Strict 8. Indexing 01. Ans: 400 Sol: Blocking factor = 512/20=25 Number of data blocks = 10000/25=400 In primary index, the number of index records= 400 which is number of blocks in multi level index. 02. Ans: (c) Sol: Since block size is 2 10 (=1024 bytes), 2 m 2 n = 2 10. Only option (c) satisfies with m = 8 and n = 2. 03. Sol: 99 records 04. Ans: (c) 05. Ans: (c) Sol: n P + (n 1) k <=B. Where n is order of the node, P is the block pointer, k search key value and B is block size. n 4 + (n 1) 8 = 512, 12 n = 520, n = 43. 06. Ans: (b) Sol: n P + (n-1)k <=B. Where n is order of the tree, P is block pointer, k is key value and B is block size.

: 14 : DBMS Therefore n 6 + (n 1)9 <=1024. n = 1033/16 = 64 (approximately) 07. Ans: 5 Sol: The nodes to access all records with a search key greater than or equal to 7 and less than 15 is (9), (5), (5, 7) (9, 11) and (13, 15). 08. Ans: (b) 11. Ans: (a) Sol: If we remove K50 in index node, there is no change in height as still root, index and leaf nodes exist. Leaf nodes are now, after Delete 50, the B + is: 20 15 30 09. Ans: (d) 10. Ans: (a) Sol: Insert 15 40 10 15 20 25 30 40 10 15 20 25 30 40 Hence Root now consists: 20 (i) is true, (ii) is true but (iii) is not true 15 30 50 10 15 20 30 40 50 Insert 25 20 40 15 30 50 10 15 20 25 30 40 50