上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: 数据集地址:https://www.kaggle.com/datasets/shaunthesheep/microsoft-catsvsdogs-dataset ```python from shutil import copyfile import random import torch.nn a 阅读全文
posted @ 2022-05-18 18:34 里列昂遗失的记事本 阅读(952) 评论(0) 推荐(0)
摘要: 二叉搜索树的操作集 本题要求实现给定二叉搜索树的5种常用操作 函数接口定义 BinTree Insert( BinTree BST, ElementType X ); BinTree Delete( BinTree BST, ElementType X ); Position Find( BinTr 阅读全文
posted @ 2022-04-22 20:51 里列昂遗失的记事本 阅读(66) 评论(0) 推荐(0)
摘要: 先序输出叶结点 本题要求按照先序遍历顺序输出给定二叉树的叶节点 函数接口定义 void PreorderPrintLeaves( BinTree BT ); 其中BinTree结构定义如下: typedef struct TNode *Position; typedef Position BinTr 阅读全文
posted @ 2022-04-22 20:18 里列昂遗失的记事本 阅读(83) 评论(0) 推荐(0)
摘要: 求二叉树高度 本题要求给定二叉树的高度 函数接口定义 int GetHeight( BinTree BT ); 其中BinTree结构定义如下: typedef struct TNode *Position; typedef Position BinTree; struct TNode{ Eleme 阅读全文
posted @ 2022-04-22 20:11 里列昂遗失的记事本 阅读(102) 评论(0) 推荐(0)
摘要: 二分查找 本题要求实现二分查找算法。 函数接口定义 Position BinarySearch( List L, ElementType X ); 其中List结构定义如下: typedef int Position; typedef struct LNode *List; struct LNode 阅读全文
posted @ 2022-04-20 20:31 里列昂遗失的记事本 阅读(31) 评论(0) 推荐(0)
摘要: 二叉树的遍历 本题要求给定二叉树的4种遍历 函数接口定义 void InorderTraversal( BinTree BT ); void PreorderTraversal( BinTree BT ); void PostorderTraversal( BinTree BT ); void Le 阅读全文
posted @ 2022-04-20 20:02 里列昂遗失的记事本 阅读(65) 评论(0) 推荐(0)
摘要: 在一个数组中实现两个堆栈 本题要求在数组中实现两个堆栈 函数接口定义 Stack CreateStack( int MaxSize ); bool Push( Stack S, ElementType X, int Tag ); ElementType Pop( Stack S, int Tag ) 阅读全文
posted @ 2022-04-19 22:01 里列昂遗失的记事本 阅读(122) 评论(0) 推荐(0)
摘要: #include<stdio.h> void Swap(int *x, int *y) { int t; t = *x; *x = *y; *y = t; } int Partition(int A[], int p, int r) { int X = A[p]; /* 选取第一个数为主元 主元不动 阅读全文
posted @ 2022-04-18 14:29 里列昂遗失的记事本 阅读(116) 评论(0) 推荐(0)
摘要: 带头结点的链式表操作集 本题要求实现带头结点的链式表操作集 函数接口定义 Position Find( List L, ElementType X ); List Insert( List L, ElementType X, Position P ); List Delete( List L, Po 阅读全文
posted @ 2022-04-16 22:12 里列昂遗失的记事本 阅读(104) 评论(0) 推荐(0)
摘要: 链式表操作集 本题要求实现链式表的操作集 函数接口定义 Position Find( List L, ElementType X ); List Insert( List L, ElementType X, Position P ); List Delete( List L, Position P 阅读全文
posted @ 2022-04-16 11:48 里列昂遗失的记事本 阅读(108) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页