自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(115)
  • 资源 (1)
  • 收藏
  • 关注

原创 Neo4j启动失败ERROR Failed to start Neo4j on localhost:7474.java.lang.RuntimeException: Error starting N

找了很多国内外的经验贴,有说权限不够加sudo的,也有说把/labs目录下的apoc-5.18.1-core.jar移动到/plugins目录下的(最终的原因是端口7474已经有一个进程在运行了,把这个进程kill掉就可以了(),但对我来说都没有用。

2024-03-24 14:32:27 1349 2

原创 docker build打包时下载python包run pip总是超时的解决办法

2、修改运行命令,注意加上。

2023-12-31 15:40:50 986

原创 论文阅读笔记:Hearing Lips Improving Lip Reading by Distilling Speech Recognizers

这篇文章针对由于唇语识别动作具有模糊性,提取判别特征比较困难,所以唇语识别的性能不如语音识别的问题提出了LIBS方法,通过学习语音识别器来加强唇语识别,给定一个预先训练好的语音识别器,然后从语音识别器中提取特征,作为补充线索来帮助唇读器的训练,分为序列级别、上下文级别和帧级别来进行知识蒸馏。唇读器输入视频帧序列xv,y是目标字符序列。序列级知识蒸馏,序列向量 s包含输入序列的语义信息,对于一个视频帧序列xv和它对应的音频帧序列xa,它们的序列向量sa和sv应该是相同的,因为它们是同一事物的不同表达。

2023-04-27 11:17:50 773 2

原创 linux下解压数据集.zip.001 .zip.002 .zip.003分包大文件 大压缩包包含被分割的多个小压缩包

今天在下载数据集zip压缩包的时候,发现直接用unzip命令解压出来是还是分割的大压缩文件,并且后缀名是zip.001 zip.002 zip.003这种的。应该是因为我的数据集里面原先的大压缩包里面包含了几个小压缩包,并且是小压缩包被分割了。以下是查到的解决方法,就是把被分割的压缩文件zip.001 zip.002等。step3:自动按照命名方式指定的文件结构,解压成功。,先合并成一个大zip文件,再进行unzip。step2:解压合并后的小压缩包。【同理,解压其他类型分卷压缩包】

2023-04-27 10:57:49 4079

原创 记录我在github协作开发时的常用git命令和bug解决方案(新手一边试错一边更新中......)

记录我在github协作开发时的常用git命令和bug解决方案,github新手一边试错一边更新中... ...

2023-03-25 17:04:52 397

原创 git pull出错后撤销命令,回退到之前的某个版本

git pull出错后撤销命令,回退到之前的某个版本 step2 :查看历史版本,其中main@{0}是当前版本,例如我要取消此次pull操作,所以回退到main@{1}版本。step3:选择要回退到的版本。step4:ok啦~

2023-02-21 16:06:54 1234

原创 latex编译时报错Loading ‘expl3.sty‘ aborted!和control consequence /ifctexpdf already defined的解决方法

参考:https://tex.stackexchange.com/questions/576918/mismatched-latex-support-files-detected。同时我还有“control consequence /ifctexpdf already defined”的报错,修改后一并解决了。

2022-12-14 17:31:16 2555

原创 【LateX本地配置】TeXLive和TeXstudio软件安装(Latex下载/安装/测试/升级)以及vscode环境配置详细教程

我是参考以下两个教程完成的1、TeXLive和TeXstudio软件安装:(3条消息) 【软件安装】TeXLive 2022安装(Latex下载,安装,测试,升级)教程_一川风絮千片雪的博客-CSDN博客_texlive安装2、 vscode环境搭建:(3条消息) VScode配置Latex环境(VScode+texlive)_今天没有吃可爱多的博客-CSDN博客_vscode配置texlive

2022-12-08 09:40:55 707

原创 Windows10系统下以管理员身份修改系统文件,以修改hosts文件为例

Windows10系统下以管理员身份修改系统文件,以修改hosts文件为例

2022-12-05 11:01:22 1097

原创 A1151 LCA in a Binary Tree(30分)PAT 甲级(Advanced Level) Practice(C++)满分题解【LCA+树】

The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants.Given any two nodes in a binary tree, you are supposed to find their LCA.Input Specification:Each input file contains one test cas

2022-08-29 17:08:53 309

原创 A1150 Travelling Salesman Problem(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【旅行商问题+set】

主要是注意各个类型之间的逻辑判断顺序在记录每一个城市的访问次数的时候,之前用的是用数组visit来记录每个城市的次数,但是看了柳神的题解之后发现了更好的方法,就是用集合set来记录,这里利用了集合的特性,重复元素不会重复计算,刚好符合需求,并且在判断的时候更方便。...

2022-08-28 16:37:24 1365

原创 A1149 Dangerous Goods Packaging(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【map】

When shipping goods with containers, we have to be careful not to pack some incompatible goods into the same container, or we might get ourselves in serious trouble. For example, oxidizing agent (氧化剂) must not be packed with flammable liquid (易燃液体), or it

2022-08-23 17:14:26 370

原创 A1148 Werewolf - Simple Version(20分)PAT 甲级(Advanced Level) Practice(C++)满分题解【狼人杀+模拟】

题目大意:已知 N 名玩家中有 2 人扮演狼人角色,有 2 人说的不是实话,有狼人撒谎但并不是所有狼人都在撒谎。要求你找出扮演狼人角色的是哪几号玩家,如果有解,在一行中按递增顺序输出 2 个狼人的编号;如果解不唯一,则输出最小序列解;若无解则输出 No Solution~分析:每个人说的数字保存在v数组中,i从1~n、j从i+1~n遍历,分别假设i和j是狼人,a数组表示该人是狼人还是好人,等于1表示是好人,等于-1表示是狼人。k从1~n分别判断k所说的话是真是假,k说的话和真实情况不同(即v[k] *

2022-08-12 22:12:40 414

原创 在Visual Studio 2019中使用freopen_s来进行算法的输入

在Visual Studio 2019中使用freopen_s来进行算法的输入

2022-08-12 22:06:42 499 1

原创 A1147 Heaps(30分)PAT 甲级(Advanced Level) Practice(C++)满分题解【最大最小堆】

In computer science, aheapis a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the value) of P is either greater than or equal to (in a max heap) or less than or equal to (in a min heap) t..

2022-08-11 17:04:27 253

原创 A1145 Hashing - Average Search Time(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【数字处理】

The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer keys from the table and output the average search time (the number of comparisons made to find whether

2022-08-09 15:50:11 281 1

原创 A1144 The Missing Number(20分)PAT 甲级(Advanced Level) Practice(C++)满分题解【数字处理】

Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.Input Specification:Each input file contains one test case. For each case, the first line gives a positive integer N (≤105). Then N integers are given

2022-08-09 15:45:44 161

原创 A1143 Lowest Common Ancestor(30分)PAT 甲级(Advanced Level) Practice(C++)满分题解【常规思路+前序中序建树+LCA】

这道题给出了前序序列,然后要找给出的两个节点的LCA,又由于是BST二叉搜索树,所以key值的从小到大序列就是中序序列,所以很自然地想到根据前序和中序序列来构建BST树找节点a和b的LCA的时候主要分为以下三种情况:a和b分布在当前root的左右两边,root即为LCAa和b都在当前root的左子树,以root.left为新的root继续进行递归a和b都在当前root的右子树,以root.right为新的root继续进行递归...

2022-08-09 11:53:03 319

原创 A1142 Maximal Clique(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【图+极大团】

这道题首先在于看懂题目,判断输入的图是否是一个两两连通的团,或者是否是极大团,最后总结归纳为以下两个条件:是否两两相连是否存在每个人都有的共同邻居然后分别定义两个判断上述条件的bool类型函数,再根据要求在输出时进行判断...

2022-08-08 16:00:34 102

原创 A1141 PAT Ranking of Institutions(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【map+多条件排序】

After each PAT, the PAT Center will announce the ranking of institutions based on their students' performances. Now you are asked to generate the ranklist.Input Specification:Each input file contains one test case. For each case, the first line gives a

2022-08-07 16:30:35 489

原创 A1140 Look-and-say Sequence(20分)PAT 甲级(Advanced Level) Practice(C++)满分题解【字符串处理】

whereDis in [0, 9] except 1. The (n+1)st number is a kind of description of the nth number. For example, the 2nd number means that there is oneDin the 1st number, and hence it isD1; the 2nd number consists of oneD(corresponding toD1) and one 1 (cor...

2022-08-05 17:06:31 190

原创 A1023 Have Fun with Numbers(20分)PAT 甲级(Advanced Level) Practice(C++)满分题解【大整数相加】

Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit number consisting exactly the numbers from 1 to 9, only in a diffe

2022-08-05 11:39:00 162

原创 A1034 Head of a Gang(30分)PAT 甲级(Advanced Level) Practice(C++)满分题解【DFS+图的遍历】

One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call betweenAandB, we say thatAandBis related. The weight of a relation is defined to be the total time length of all the phone calls made between...

2022-08-04 17:06:44 132

原创 A1040 Longest Symmetric String(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【对称字符串+动态规划】

Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, givenIs PAT&TAP symmetric?, the longest symmetric sub-string iss PAT&TAP s, hence you must output11.Input Specification:Each input file contains o...

2022-08-04 10:47:53 101

原创 A1081 Rational Sum(20分)PAT 甲级(Advanced Level) Practice(C++)满分题解【分数运算]

分数运算,设置结构体包含分数的分母和分子,然后按固定套路写就好了,注意分子分母的数据类型都是long int,但是最后结果输出的时候要输出int类型。

2022-08-03 15:58:15 80

原创 A1052 Linked List Sorting(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【链表地址+排序]

先将原始输入数据存入srclist中,然后根据节点的address和next来遍历找出相连接的节点存入linked_list链表,然后对linked_list根据key值从小到大的顺序排序,并记录有效节点的个数,最后再进行输出。注意输出时要更新节点的next地址值,为linked_list链表中下一个节点的address地址值。但是仅作上述操作后测试点3会fail,后来看了其他人的题解后,发现要注意当输入的起始地址start为-1时,此时应该要输出“0 -1”,加上这个判断后就AC了。...

2022-08-02 10:49:22 129

原创 A1032 Sharing(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【字符串+结构体+map]

首先看到这类题第一反应是定义一个结构体存放每个字母的信息,为了不受整数的各种影响,直接全部用字符串处理。基本思路是首先存放所有字母节点,然后遍历分别找出两个单词的首字母位置,然后定义createWord函数找该单词所有下一个字母位置组成序列。两个单词全部找到后,从后往前比较找相同的字母,记录最后一次相同字母的位置输出,找不到就输出“-1”。这里为了方便判断两个单词即两个结构体变量是否相同,对==运算符进行函数重载。...

2022-07-29 17:53:01 807

原创 A1030 Travel Plan(30分)PAT 甲级(Advanced Level) Practice(C++)满分题解【Dijkstra+DFS]

采用了Dijkstra算法和深度优先遍历DFS,用root数组存放从设定的起始点到每个点i的最短路径。题目要求是首先找到最短路径,如果最短路径的解不止一个,就再找到花费代价最小的。

2022-07-29 16:41:16 485

原创 A1024 Palindromic Number(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【回文串+大整数运算】

由于不断的翻转相加,最后变成了大整数运算,会溢出,所以转换为string字符串类型来计算,主要用到了reverse()函数来处理字符串的翻转,注意这个。大整数相加函数add()的写法。

2022-07-27 22:16:54 189

原创 A1104 Sum of Number Segments(20分)PAT 甲级(Advanced Level) Practice(C++)满分题解【子序列数学问题+测试点2注意double带来的误差】

因为输入为十进制小数,存储到double中时,计算机内部使用二进制表示,且计算机的字长有限,有的十进制浮点数使用二进制无法精确表示只能无限接近,在字长的限制下不可避免会产生舍入误差,这些细微的误差在N较大时多次累加会产生较大误差,所以建议不要使用double类型进行多次累加的精确计算,而是转为能够精确存储的整型。再举几个例子,这里不再赘述。该数所在位置序号i*(n-i+1)double类型的值多次累加导致的精度误差。这道题第一反应就是找规律总结公式。...

2022-07-27 18:03:33 254

原创 A1078 Hashing(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【哈希表】

从发生冲突的单元开始探查,依次查看下一个单元是否为空,如果到了最后一个单元还是空,那么再从表首依次判断。这道题的思路还算是比较明晰,将数字一个个存入到用来表示哈希表的vector中,每放一个就做标记,被放过的格子就要跳过,这里注意题目要求的是使用。定义两个散列函数,分别为s1和s2,s1的算法和前面一致,s2取一个1~m-1之间并和m互为素数的数。从发生冲突的单元加上1^2,2^2,3^2,...,n^2,直到遇到空闲的单元。从发生冲突的单元加上1^2,2^2,3^2,...,n^2,直到遇到空闲的单元。.

2022-07-27 16:37:13 608

原创 A1077 Kuchiguse(20分)PAT 甲级(Advanced Level) Practice(C++)满分题解【字符串】

这题还算比较简单,就是从后往前遍历找出所有字符串句子的相同部分,然后反转后输出,唯一要注意的点就是在输入字符串时,直接用cin是没有办法读入空格的,所以会出现不会输入所有字符串的情况,所以要用getline(cin,str),不过由于前面用cin输入了一个n,所以要用cin.ignore(1)忽略掉前一个cin遗留下的空格。...

2022-07-26 16:33:11 523

原创 A1076 Forwards on Weibo(30分)PAT 甲级(Advanced Level) Practice(C++)满分题解【BFS】

题目给出的是每个用户关注的人,所以在储存到数组时应该转换为每个人的粉丝群体,这样才能直接表示一个人可以带来的转发量,然后从查询用户为起点,该用户的粉丝列表,然后粉丝列表的粉丝列表,当层数超过L后就不计算了。...

2022-07-26 14:47:01 242

原创 A1126 Eulerian Path(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【欧拉图】

In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path which starts and ends on the same vertex. They were first discussed by Leonhard Euler while solving the famous S

2022-07-25 21:03:57 108

原创 A1124 Raffle for Weibo Followers(20分)PAT 甲级(Advanced Level) Practice(C++)满分题解【map】

用map来存放每个用户是否获奖,注意当一个是因为上一个人已经获奖了而递补到的获奖,那么下一轮获奖就要以当前这个人为基准进行每隔n个人获奖,而不是还是延续初始时的那个轮次。

2022-07-24 15:48:41 189

原创 A1125 Chain the Ropes(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【排序】

题目要求是要求所有绳索连接起来的最大长度,注意每次进行两个绳索连接操作的话,该两条绳索的长度之和就要除以2,并舍去小数,所以如果要使最后的和最大,那么就要让最长的绳索做的折半次数最少,故在获取所有绳索后先做一个从小到大的排序处理,从小到大依次折半,越小的折半后损失的长度最小。......

2022-07-24 15:42:48 136

原创 A1138 Postorder Traversal(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【前中后序树的遍历】

Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traversal sequences, you are supposed to output the first number of the postorder traversal sequence of the corresponding binary tree.Each input file

2022-06-04 22:19:17 71

原创 A1146 Topological Order(25分)PAT 甲级(Advanced Level) Practice(C++)满分题解【拓扑排序】

This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order obtained from the given directed graph? Now you are supposed to write a program to test each of the options.Each input file contains one test c

2022-06-04 21:25:01 143

原创 A1153 Decode Registration Card of PAT(25分)PAT甲级 (Advanced Level) Practice(C++)满分题解【unordered_map+排序】

A registration card number of PAT consists of 4 parts:Now given a set of registration card numbers and the scores of the card owners, you are supposed to output the various statistics according to the given queries.Each input file contains one test case. F

2022-06-03 22:38:06 128

原创 A1152 Google Recruitment(20分)PAT甲级 (Advanced Level) Practice(C++)满分题解【素数+字符串】

In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is super-simple, a URL consisting of the first 10-digit prime found in consecutive digits of the natural constant

2022-06-03 17:38:06 1922

Zotero常用插件合集

包含jasminum、pdftk_server、zotero-pdf-translate、zotero-scihub、zotero-theme、zotfile常用插件,直接下载安装即可

2023-03-05

AES对称加密算法的Python实现(含基础UI界面)

AES对称加密算法的Python代码实现,含基础UI界面,课程设计 AES加密算法涉及4种操作,分别是字节替代、行移位、列混淆和轮密钥加,解密算法的每一步分别对应加密算法的逆操作,且所有操作的顺序相反。加解密中每轮的密钥分别由初始密钥经过密钥扩展算法得到。算法中16字节的明文、密文和轮子密钥都以一个4x4的矩阵表示。

2022-03-28

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除