软件测试和软件质量-朱蔚恒-2.ppt

  1. 1、本文档共41页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
软件测试与软件质量 朱蔚恒 09.春 珠海学院 Overview 测试人员的离散数学 集合论 函数 关系 概率 图 Representation Paths Directed Graphs Graphs for Testing 集合定义 列举: Example: Y = {10, 20, 30, 40} 使用判断规则: Examples: Y = {item_number | 80 item_number 100} Y = {x | x is positive integer} Y = {x | PI(x)} 空集: Y = {year : 2012 year 1812} = {} = O 文氏图 Diagrams that illustrate different set relationships or illustrate a set with respect to the domain (U) 集合运算: 并Union : A U B = { x : x in A or x in B} 交Intersection: A ∩ B = {x : x in A and x in B} 补Complement: A* = {x : x not in A} 相对补Relative complement: A – B = {x : x in A and x not in B} 对称差Symmetric difference: A B = {x: x in A x in B} = (A U B) – (A ∩ B) 集合关系和划分 子集A Subset B: a in A ? a in B 真子集A Proper Subset B: A subset B and (B – A) ≠ O 两集合相等Equal sets: A = B iff A subset B and B subset A 划分Given a set B and a set of subsets A1, A2, An of B, the subsets are a partition of B iff A1 U A2 U .. An = B For i ≠ j Ai ∩Aj = O 函数,定义域,值域 Given two sets A and B, a function f :A ? B is a subset of the product A X B such that for any of ai, aj in A, there exist bi, bj in B such that f(ai) = bi, and f(aj) = bj. The set A is called the domain of f and B is called the range of f. The function f can be represented as a set of pairs. 函数类型 Functions are further described by the particulars of the mapping e.g. f(A) = {bi in B : bi = f(ai) for some ai in A} This set is sometimes called the image of A under f Types of functions that relate the image and the range are: Function f is a function of A onto B iff f(A) = B Function f is a function of A into B iff f(A) proper subset B Function f is a one-to-one function from A to B iff for all ai, aj in A, s.t. ai ≠aj implies that f(ai) ≠ f(aj) 复合函数 Suppose we have sets and functions such that the range of one is the domain of the next: f: A ? B g: B ? C h: C ? D We can define a new function w:A ? D such that w(a) = (h o g o f) (a) = h(g(f(a))) So, if f(a) = b, and g(b) = c, and h(c) = d then w(a) = h

文档评论(0)

lyxbb + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档