The following diagram shows the parent-child relationships among seven processes.

Linked lists can be avoided by implementing two additional pointers, younger sibling (ys) and older sibling (os), in each PCB. Use the following format to show the pointers used by each process: parent, first child, younger sibling, older sibling; if a link is not used or not defined use '-'.
Pointers of process 1 are given as an example: -4--.
1) pointers of process 4 is given by: ____
2) pointers of process 6 is given by: ____
3) pointers of process 3 is given by: ____
4) pointers of process 7 is given by: ____
5) pointers of process 9 is given by: ____
6) pointers of process 8 is given by: ____
According to the format which is-
Parent, First Child, Younger Sibling, Older Sibling
1. Process 4 : 17-6
This means the process 4 has a parent 1, First Child 7, Younger Sibling isn't present hence '-', Older Sibling is 6. Hence those are the pointers.
The same format is followed for the next questions
2. Process 6 : 1-43
3. Process 3 : 196-
4. Process 7 : 4---
5. Process 9 : 3--8
6. Process 8 : 3-9-
comment for any further doubts!
The following diagram shows the parent-child relationships among seven processes. Linked lists can be avoided by...
In NetBeans Create a new Java Application to manage Linked Lists: (Note: Do not use java.util.LinkedList) a) Create a DateTime class 1. Add day, month, year, hours, minutes as attributes 2. Add a constructor and a toString() method 3. Implement the Comparable interface, and add a CompareTo() method 4. Add methods to get and set all attributes. b) Add to MyLinkedList class the following methods: 1. Insert a Node to a particular position in the List 2. Insert a Node...
Please answer the following questions
1. What keyword is used to make a child class use a parent class? a.) is a b.) extends c.) has a d.) inherits 2. Suppose you have the given code below. Scanner keyboard = new Scanner(System.in); What would be the correct way to scan in an integer value from the keyboard. a.) scan.nextInt() b.) scan.nextDouble() c.) scan.nextLine() d.) keyboard.nextInt() 3. True or False. Arrays use sequential blocks of memory while linked lists do not...
You are given a binary tree of the form:
Each node in the tree has a left child and a right child. Each
of the children will be extended as a linked list. Every node has
the following attributes: key, left node, right node, and next
node. The next node allows a node, that is a part of the tree, to
be extended as a linked list. The diamonds represent the next
nodes, which are part of the linked list...
BMI Subject ID # Child Child’s Birth Parent Child’s Adoptive Parent 1 17 34 19 2 22 19 22 3 28 22 34 4 24 19 27 5 23 28 24 6 19 22 19 7 26 22 29 8 19 24 18 9 25 21 27 10 19 23 21 Part 2: Correlating the children’s BMI with their adoptive parents’ BMI Create a scatter plot between the children’s BMI and their adoptive parents’ BMI. Format the plot into an...
Zoe Corporation has the following information for the month of March: $92,000 6,000 8.000 25,000 Purchases Materials inventory, March 1 Materials inventory, March 31 Direct labor Factory overhead Work in process, March 1 Work in process, March 31 Finished goods inventory, March 1 Fished goods inventory, March 31 37,000 22.000 23,500 21,000 30,000 257,000 79,000 sales and admirative expenses . Prepare a schedule of cost of goods manufactured Zoe Corporation Statement of Cost of Goods Manucured For Morth Ended March...
QUESTION 1 In a tree, a ____ is a node with successor nodes. root child descendent parent sibling QUESTION 2 In a tree, the ____ is a measure of the distance from a node to the root. count degree branch height level QUESTION 3 Which of the following is not a characteristic of a binary search tree? Each node has zero, one, or two successors. The preorder traversal processes the node first, then the left subtree, and then the right...
Programming Assignment 1 Data structure Java Implement Shellsort for a linked list, based on a variant of bubble sort. The rather severe constraints imposed by the singly-linked list organization presents special problems for implementing Shellsort. Your task is to overcome these constraints and develop a simple, elegant implementation that does not sacrifice efficiency or waste space. Step 1. First, implement a routine to build a list: read integers from standard input, and build a list node for each item consisting...
3 Mike Greenberg opened Grouper Window Washing Co. on July 1, 2020. During July, the following transactions were complet July 1 Owner invested $10,300 cash in the company. 1 Purchased used truck for $6,880, paying $1,720 cash and the balance on account Purchased cleaning supplies for $770 on account. 5 Paid $1,560 cash on a 1-year insurance policy effective July 1. 12 Billed customers $3,180 for cleaning services performed Paid $860 cash on amount owed on truck and $430 on...
Given a singly linked list contains 5 nodes, which simply shows as 5->4->3->2->1, what is the value that you can find in the second node of the remaining list if the following statements are applied? Assume head reference refers the first node of the list. Node prev = head; Node curr = head. next; while(curr.next!=null) { if(prev.element > 3) { prev = curr; curr = curr.next; } else break; } head = prev.next; Question 3 options: 3 2 4 1...
Santa Claus needs to automate the compiling of the naughty and nice lists. Your program will read in each child’s name and their count of major and minor good deeds and their major and minor bad deeds. With that information, compute an overall score and determine if they go on the naughty or nice list. Major good deeds might be something like shoveling the walk and driveway for the chronologically challenged lady down the street, a minor good deed would...