• 検索結果がありません。

第 2 回演習: 集合の列挙(頻出集合マイニング)

N/A
N/A
Protected

Academic year: 2021

シェア "第 2 回演習: 集合の列挙(頻出集合マイニング)"

Copied!
2
0
0

読み込み中.... (全文を見る)

全文

(1)

情報知識ネットワーク特論,有村

第 2 回演習: 集合の列挙(頻出集合マイニング)

Exercise 2: Enumeration of sets (frequent itemset mining)

今日のテーマ: 組合せの初歩である,集合について勉強しよう.

はじめに解答用紙に,専攻,学年,学生番号,氏名を記載のこと.

At first, please write your division(affiliation), year/grade, student number, full name on the answer seat.

練習1.集合をS = {1, 2, 3, 4}とする.次の問題に答えよ.

Let S = {1, 2, 3, 4} be a finite set of four elements.

(1)空集合φはSの部分集合か? Is the emptyset φ a subset of S?

(2)Sのすべての部分集合を書き出せ. Write/List all subsets of S.

(3)それらの総数はいくつか?

How many are they?

(4)オプション問題)非負整数 n を入力としてもらい,集合S = {1, ..., n}のすべ ての部分集合を書きだすプログラムを書け.プログラミング言語は何を使って もよい.日本語や英語の疑似コードでもかまわない.

Optional Problem) Write a computer program (algorithm) that receives a nonnegative number n, and prints all subsets of the set S = {1, ..., n}. You can use any programing languages as well as pseudo code written in Japanese/English.

(2)

情報知識ネットワーク特論,有村 資料 No. 4 補足

補足

復習:集合(集合, 2.2 節)

集合の基本的な定義は次からなる.

集合 (set)とは「もの」の集まり A であって,要素 x と集合 A に対して,次の所 属関係が真か偽に定まっているものをいう: x ∈ A

有限集合と無限集合

以下では自然数(0以上の整数)全体の集合を考える.

集合の表わし方:

! A = {1, 3, 5, 7, 11} : ちょうど要素 1, 3, 5, 7, 11 からなる集合(外 延記法)

! A = { x | 60 ≦ x ≦ 100 }: 合格点の集合(内包記法)

集合を A と B とする.

A が B の部分集合であること(A ⊆ B と書く)を次のように定義する:

! A ⊆ B ⇔ ∀x [ (x ∈ A) ⇒ (x ∈ B) ]

A と B が等しいこと(A = B と書く) を次のように定義する:

! A = B ⇔ A ⊆ B かつ B ⊆ A

和集合 A∪B と積集合 A∩B,差集合 A-B を次のように定義する:

! A∪B = { x | x∈A または x ∈ B }

! A∩B = { x | x∈A かつ x ∈ B }

! A-B = { x | x∈A , かつ x ∈ B でない }

集合 A と B が互いに素(交わらない)⇔ A∩B =φ.

数学の問題の解き方:

まず,示したい目的の式と,使う定義を確認しよう.次に,定義からいろいろやって みて解法をみつけよう(ここが一番時間がかかる).最後に,答えが見つかったら,

もう一度全体の流れを見直して,一ステップごとにその理由を添えて,定義から目的 の式まで,前から順に書き下そう.

(有村博紀)

A ∪ B A ∩ B A

参照

関連したドキュメント

1-1 睡眠習慣データの基礎集計 ……… p.4-p.9 1-2 学習習慣データの基礎集計 ……… p.10-p.12 1-3 デジタル機器の活用習慣データの基礎集計………

It is also known that every internally triconnected plane graph has a grid drawing of size (n − 1) × (n − 2) in which all inner facial cycles are drawn as convex polygons although

There is also a graph with 7 vertices, 10 edges, minimum degree 2, maximum degree 4 with domination number 3..

581] asserts the existence for any natural number N of a partition of the unit sphere S d ⊂ R d+1 into N regions of equal area and small diameter.. The recursive zonal equal area

Key words and phrases: higher order difference equation, periodic solution, global attractivity, Riccati difference equation, population model.. Received October 6, 2017,

Replace the previous sum by a sum over all partitions in S c × DD Check that coefficents of x n on both sides are polynomials in t, and conclude that the formula is true for

In recent work [23], authors proved local-in-time existence and uniqueness of strong solutions in H s for real s > n/2 + 1 for the ideal Boussinesq equations in R n , n = 2, 3

(Furthermore, a bound on the number of elementary matrices can be found that depends only on n, and is universal for all fields.) In the case of fields, this can easily be