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

  Describe purpose of the keyword super in programs

Describe purpose of the keyword super in programs

  Design conceptual diagram to identify hardware elements

Design a conceptual diagram which identifies the hardware elements present inall computer systems and their relationships?

  Explain the function of input controls

Explain the advantages and disadvantages of restricting user interfaces. (User interfaces can often be restricted, limiting the user's ability to navigate to other areas of the system, or out of the system.)

  Beats number at output of first round of des decryption

Calculate the beats number 1, 16, 33, and 48 at output of first round of DES decryption, suppose that ciphertext block is composed of all ones.

  Speedy spuds is a fast-food restaurant

Speedy Spuds is a fast-food restaurant offering all kinds of potatoes. The manager has a 30-second rule for serving customers. Servers at the counter say they could achieve that rule if the form they must fill out and give to the kitchen crew were si..

  Q1 what is regression testing explain various types of

q.1 what is regression testing? explain various types of regression testing.nbspq.2 what are the various steps by which

  Components affect requirements-design-implementation phases

Must RMO consider using purchased components within new CSS? If so, When, must it begin looking for components? How will the decision to use components affect requirements, design and implementation phases?

  Design state transition diagram for member state

Design a state transition diagram which explains typical member state and how they change based on specific actions and events.

  Discuss cisc, risc, pipelining and parallel processing

Write a 2 page research paper (excluding the title page) on computer architecture, and discuss CISC, RISC, pipelining, and parallel processing.

  When implementing a new system there are many different

when implementing a new system there are many different models that a company can choose to follow sdlc rad prototyping

  You are a marketing manager interviewing for a new job at

you are a marketing manager interviewing for a new job at several different firms simultaneously. you expect to be

  How to transform a class diagram into a software system

Demonstrate your understanding of the class relationships "has-a" (composition) and "is-a" (inheritance) by including both types of relationships between your classes where appropriate.

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