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

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

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