Counting Internet Addresses.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Counting Internet Addresses.ppt

Counting Internet Addresses In IPv4 (Version 4 of the Internet Protocol) an address is a string of 32 bits: network number (netid) + host number (hostid). Three forms of addresses: Class A: 0 + 7-bit netid + 24-bit hostid (largest network). Class B: 10 +14-bit netid + 16-bit hostid (medium-sized network). Class C: 110 +21-bit netid + 8-bit hostid (small network). 1111111 is not available as netid of a class A network. No hostids with all 0s or all 1s. How many different IPv4 addresses are available? Problem How many positive integers between 100 and 999 inclusive are divisible by 7? are odd? have the same three decimal digits? are not divisible by 4? are divisible by 3 or 4 are not divisible by either 3 or 4 are divisible by 3 but not by 4? are divisible by 3 and 4? Problem How many functions are there from the set { 1, 2, . . ., n }, where n is a positive integer to the set { 0, 1 } -- that are one-to-one? that assign 0 to both 1 and n? that assign 1 to exactly one of the positive integers less than n? Problem A Palindrome is a string whose reversal is identical to itself (e.g., madam, tenet) How many bit strings of length n are palindromes? Example (Application of pigeonhole principle) Announcement 5.3 Permutations and Combinations 5.3 Permutations and Combinations 5.3 Permutations and Combinations 5.3 Permutations and Combinations 5.3 Permutations and Combinations 5.3 Permutations and Combinations 5.3 Permutations and Combinations Theorem: P(n, r) = n *(n-1)*(n-2) …. (n-r+1). Corollary 1: P(n, r) = n! / (n-r)!. Problem: How many ways are there to select a first-prize winner, a second-prize winner and a third-prize winner from 100 different people who have entered a contest? Problem: How many permutations of the letters ABCDEFGH contain the string ABC? r-combination (of a set of n distinct elements) is an unordered selection of r elements from the set. (The number of all r-combinations is denoted as C(n, r).) The set (of 6 elements) 3 different 3-pe

文档评论(0)

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

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

1亿VIP精品文档

相关文档