Pinned Repositories
alignment
alp-baselines
Baselines for anchor link prediction (including MNA, PALE, IONE, FINAL, FRUI-P, CROSSMNA, REGAL)
Binary-CNN
BinaryConnect
Training Deep Neural Networks with binary weights during propagations
BinaryNet
Training Deep Neural Networks with Weights and Activations Constrained to +1 or -1
caffe
Caffe: a fast open framework for deep learning.
CLF
A reproduction of "CLF: Zhang J , Yu P S . Integrated anchor and social link predictions across social networks[C] International Conference on Artificial Intelligence. AAAI Press, 2015."
Core-Python-Programming-Notes
Install-BinaryConnect-On-Windows10
isomorphism-of-trees-ZJU-Datastructure
给定两棵树T1和T2。如果T1可以通过若干次左右孩子互换就变成T2,则我们称两棵树是“同构”的。例如图1给出的两棵树就是同构的,因为我们把其中一棵树的结点A、B、G的左右孩子互换后,就得到另外一棵树。而图2就不是同构的。 图1 图2 现给定两棵树,请你判断它们是否是同构的。 输入格式: 输入给出2棵二叉树树的信息。对于每棵树,首先在一行中给出一个非负整数NNN (≤10\le 10≤10),即该树的结点数(此时假设结点从0到N−1N-1N−1编号);随后NNN行,第iii行对应编号第iii个结点,给出该结点中存储的1个英文大写字母、其左孩子结点的编号、右孩子结点的编号。如果孩子结点为空,则在相应位置上给出“-”。给出的数据间用一个空格分隔。注意:题目保证每个结点中存储的字母是不同的。 输出格式: 如果两棵树是同构的,输出“Yes”,否则输出“No”。 输入样例1(对应图1): 8 A 1 2 B 3 4 C 5 - D - - E 6 - G 7 - F - - H - - 8 G - 4 B 7 6 F - - A 5 1 H - - C 0 - D - - E 2 - 输出样例1: Yes 输入样例2(对应图2): 8 B 5 7 F - - A 0 3 C 6 - H - - D - - G 4 - E 1 - 8 D 6 - B 5 - E - - H - - C 0 2 G - 3 F - - A 1 4 输出样例2: No
RaymondAmesSpruance's Repositories
RaymondAmesSpruance/isomorphism-of-trees-ZJU-Datastructure
给定两棵树T1和T2。如果T1可以通过若干次左右孩子互换就变成T2,则我们称两棵树是“同构”的。例如图1给出的两棵树就是同构的,因为我们把其中一棵树的结点A、B、G的左右孩子互换后,就得到另外一棵树。而图2就不是同构的。 图1 图2 现给定两棵树,请你判断它们是否是同构的。 输入格式: 输入给出2棵二叉树树的信息。对于每棵树,首先在一行中给出一个非负整数NNN (≤10\le 10≤10),即该树的结点数(此时假设结点从0到N−1N-1N−1编号);随后NNN行,第iii行对应编号第iii个结点,给出该结点中存储的1个英文大写字母、其左孩子结点的编号、右孩子结点的编号。如果孩子结点为空,则在相应位置上给出“-”。给出的数据间用一个空格分隔。注意:题目保证每个结点中存储的字母是不同的。 输出格式: 如果两棵树是同构的,输出“Yes”,否则输出“No”。 输入样例1(对应图1): 8 A 1 2 B 3 4 C 5 - D - - E 6 - G 7 - F - - H - - 8 G - 4 B 7 6 F - - A 5 1 H - - C 0 - D - - E 2 - 输出样例1: Yes 输入样例2(对应图2): 8 B 5 7 F - - A 0 3 C 6 - H - - D - - G 4 - E 1 - 8 D 6 - B 5 - E - - H - - C 0 2 G - 3 F - - A 1 4 输出样例2: No
RaymondAmesSpruance/alignment
RaymondAmesSpruance/alp-baselines
Baselines for anchor link prediction (including MNA, PALE, IONE, FINAL, FRUI-P, CROSSMNA, REGAL)
RaymondAmesSpruance/Binary-CNN
RaymondAmesSpruance/BinaryConnect
Training Deep Neural Networks with binary weights during propagations
RaymondAmesSpruance/BinaryNet
Training Deep Neural Networks with Weights and Activations Constrained to +1 or -1
RaymondAmesSpruance/caffe
Caffe: a fast open framework for deep learning.
RaymondAmesSpruance/CLF
A reproduction of "CLF: Zhang J , Yu P S . Integrated anchor and social link predictions across social networks[C] International Conference on Artificial Intelligence. AAAI Press, 2015."
RaymondAmesSpruance/Core-Python-Programming-Notes
RaymondAmesSpruance/Install-BinaryConnect-On-Windows10
RaymondAmesSpruance/Is-It-The-Same-Binary-Search-Tree-
04-树4 是否同一棵二叉搜索树 (25分) 给定一个插入序列就可以唯一确定一棵二叉搜索树。然而,一棵给定的二叉搜索树却可以由多种不同的插入序列得到。例如分别按照序列{2, 1, 3}和{2, 3, 1}插入初始为空的二叉搜索树,都得到一样的结果。于是对于输入的各种插入序列,你需要判断它们是否能生成一样的二叉搜索树。 输入格式: 输入包含若干组测试数据。每组数据的第1行给出两个正整数NNN (≤10\le 10≤10)和LLL,分别是每个序列插入元素的个数和需要检查的序列个数。第2行给出NNN个以空格分隔的正整数,作为初始插入序列。最后LLL行,每行给出NNN个插入的元素,属于LLL个需要检查的序列。 简单起见,我们保证每个插入序列都是1到NNN的一个排列。当读到NNN为0时,标志输入结束,这组数据不要处理。 输出格式: 对每一组需要检查的序列,如果其生成的二叉搜索树跟对应的初始序列生成的一样,输出“Yes”,否则输出“No”。 输入样例: 4 2 3 1 4 2 3 4 1 2 3 2 4 1 2 1 2 1 1 2 0 输出样例: Yes No No
RaymondAmesSpruance/List-Leaves
Given a tree, you are supposed to list all the leaves in the order of top down, and left to right. Input Specification: Each input file contains one test case. For each case, the first line gives a positive integer NNN (≤10\le 10≤10) which is the total number of nodes in the tree -- and hence the nodes are numbered from 0 to N−1N-1N−1. Then NNN lines follow, each corresponds to a node, and gives the indices of the left and right children of the node. If the child does not exist, a "-" will be put at the position. Any pair of children are separated by a space. Output Specification: For each test case, print in one line all the leaves' indices in the order of top down, and left to right. There must be exactly one space between any adjacent numbers, and no extra space at the end of the line. Sample Input: 8 1 - - - 0 - 2 7 - - - - 5 - 4 6 Sample Output: 4 1 5
RaymondAmesSpruance/Some-simple-experiments-on-Dynanmic-Linked-Library