- 博客(7)
- 收藏
- 关注
原创 other, the other, others, the others与another的用法区别
1. other表示“别的,其它的”,它不能单独使用,后面必须要接可数名词的复数形式。如:He studies English, math and some other subjects. 他学习英语、数学和一些别的科目。这句话中,就算前面没有some,other后面也只能用复数形式。2. the other多指“两者中的另一个”,也可以指三者及以上中剩下的最后一个。可以独立使用,也可以在后面接上名词。如:(1)One of the twins likes apples, the other lik
2021-05-29 13:42:12
1793
原创 Floyd 算法
概要初始状态时候两点的距离:A[i][j]=0(如果i==j)A[i][j] = 0 (如果i == j)A[i][j]=0(如果i==j)A[i][j]=∞(如果i!=j,且无边相连)A[i][j] = ∞ (如果 i != j, 且无边相连)A[i][j]=∞(如果i!=j,且无边相连)A[i][j]=W[i][j](如果i!=j,且有边相连接)A[i][j] = W[i][j] (如果 i != j, 且有边相连接)A[i][j]=W[i][j](如果i!=j,且有边相连接)计算最短路径A
2021-05-03 20:33:33
166
原创 并查集
图片示意代码#include <bits/stdc++.h>using namespace std;int findFather(int v);int find(int v);void Union(int x, int y);int parent[4];int findFather(int v) { if (parent[v] != v) { parent[v] = findFather(parent[v]); } return
2021-05-01 20:27:39
117
原创 Prim 普莱姆算法
图解步骤具体代码#ifndef UNTITLE_MATGRAPH_H#define UNTITLE_MATGRAPH_H#endif //UNTITLE_MATGRAPH_H#define MAXV 10#define INF 32767typedef struct { int no; //顶点的编号 char info; //顶点的其他信息}VertexType; //顶
2021-04-27 23:57:07
388
原创 Dijskra迪杰斯特拉算法
dijskra#ifndef UNTITLE_MATGRAPH_H#define UNTITLE_MATGRAPH_H#endif //UNTITLE_MATGRAPH_H#define MAXV 10#define INF 32767typedef struct { int no; //顶点的编号 char info; //顶点的其他信息}VertexType; //顶点的类型type
2021-04-26 23:58:38
3905
原创 读取图片RGB数据
读取图片RGB数据import java.awt.image.BufferedImage;import java.io.File;import java.io.IOException;import javax.imageio.ImageIO;public class ReadImgRgb { public static int[][][] getImagePixel(String path) throws IOException { File file = new Fil
2021-03-31 16:54:42
599
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人