Input space partitioning

Assignment Help Software Engineering
Reference no: EM13672234

Input Space Partitioning

1. Answer questions (a) and (b) for the method findNode() below:

public Record findNode(Tree tree, String name)
/*
Effects: if tree or name are null, throw NullPointerException
else if node with specified name is in the tree, return Record for that node
else return null
*/

For example:

Tree tree1 has 3 nodes:

Parent node: name=Helen (record1)

Two children nodes: name=John (record2) and name=Helen (record3)

Call: findNode(tree1, "Helen") would return either record1 or record3

Call: findNode(tree1, null) would throw NullPointerException

Call: findNode(tree1, "Mike") would return null

Base your answer on the following characteristic partitioning:

Characteristic: Type of node with specified name in tree

Block 1: node is a parent node

Block 2: node is a child node

a. Does "Type of node with specified name in tree" fail disjointness property? Explain your answer. If it fails, give an example to illustrate this.

b. Does "Type of node with specified name in tree" fail completeness property? Explain your answer. If it fails, give an example to illustrate this.

2. Answer questions (a)-(c) for the method union() below:

public Set union(Set s1, Set s2)
/*
Effects: if s1 or s2 are null, throw NullPointerException
else return the non-null Set that is the result of union of both sets
*/

For example:
s1 = {1,2,3}
s2 = {1,4,5}

Call: union(s1,s2) returns set {1,2,3,4,5}

a. Identify at least three characteristics that suggest partitions

b. Identify the blocks in the partition for each characteristic

c. Define values for the blocks

Reference no: EM13672234

Questions Cloud

Describe how the business would benefit from information : Overall presentation of the report and structure of the report - quality of the report - describe capacity and capability of an implemented system of an existing business.
Definitions and process for calculating critical path : Review the definitions and process for calculating Critical Path
Resolve privacy issues : Resolve privacy issues
A him intern at a large physician group practice : A HIM intern at a large physician group practice
Input space partitioning : Identify at least three characteristics that suggest partitions and identify the blocks in the partition for each characteristic
The financial ratios provided in the appendix : The financial ratios provided in the Appendix
Demonstrate that the return is same : Demonstrate that the return is same as the risk-free rate.
Determine the current market price : Determine the current market price
Summarize the basic steps in any planning process : What are some ways that management can ensure the creative process is encouraged throughout the organization and summarize the basic steps in any planning process.

Reviews

Write a Review

Software Engineering Questions & Answers

  You are the lead software engineer at a large educational

you are the lead software engineer at a large educational institution consisting of twenty three 23 campuses located

  Show the representation for the smallest positive number

A 15-bit floating point number has 1 bit for the sign of the number, 5 bits for the exponent and 9 bits for the mantissa (which is normalized). Numbers in the exponent are in signed magnitude representation.

  How project leader finds what user wants and needs

How can project leader find what user wants and needs. Point about observing the user is important step in gaining good understanding of the users needs.

  What might be your key decision rules

You are a manager in a company that has a lot of in-house IS expertise. What might be your key decision rules for when to purchase a system versus when to develop it in-house?

  1give reasons why the process of requirements elicitation

1.give reasons why the process of requirements elicitation and validation is an iterative one?2.what roles does the

  Eplain your approach in managing this project via both a

you are the lead software engineer at a large educational institution consisting of twenty three 23 campuses located

  Question about hippa rights

I have found that to date, the largest offense is looking into family records even though workers are warned not too and that this is a violation of that family member's HIPAA's rights.

  Assignment in powerpoint

Assume you have been asked to help new students out with the many new and exciting issues surrounding online education at AIU.

  Explain alternative programming languages available

Describe a design of your chosen system and explain the basic architechture of a knowledgebased system.

  Prepare a report explaining the possible methods

Prepare a report explaining the possible methods that can be adopted in this particular scenario, resources required for the methods chosen for this investigation, approximate budget to conduct the investigation

  Process of life cycle-shining coyote experience in journey

Discover the shining coyote experience in journey to ixtlan. Examine from Edinger's perspective. Explain the complete process of life cycle.

  Create state diagram to identify one form of comment

Create the state diagram to identify one form of the comments of Cbased programming languages, those that begin with /* and end with */.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd