ICode9

精准搜索请尝试: 精确搜索
  • Matlab处理数据导出Paraview可读的vtk文件(二)2019-04-12 22:38:42

    由于我在用SPH方法仿真时用的是FORTRAN语言,并且没有找到直接输出vtk文件的代码,因此偷懒通过MATLAB转换一下数据。 用到的Matlab子程序可通过一下链接找到。 Matlab处理数据导出Paraview可读的vtk文件(一) 假设我每个粒子输出的格式按照下面输出的 x(i), y(i), z(i), vx(i), vy(i), vz

  • Pollard-Rhoの瞎谈2019-03-17 19:52:31

    首先讲一下哦,这是一个神奇的算法,所以比较不太好理解(我是菜到交了几十次过了之后才懂得QQwQ) 作为一个优秀的随机算法,复杂度什么的完全不好分析啊(其实是俺懒得分析了…… 都说了它是随机算法了,那么我们先随机暴力一波: while(1){ int x=rand()%(n-1)+1; if(!(n%x) ans[++sum]=x

  • P4718 【模板】Pollard-Rho算法2019-03-16 17:41:36

    玄学的pollard-rho 算法思想先咕着 #include<cstdio> #include<time.h> #include<cstdlib> #define re register #define in inline #define int long long in int ksm(int a,int b,int yyb) { int ans=1; while(b){ if(b&1) ans=ans*a%yyb;

  • BZOJ 3667 Miller_Rabin2019-03-09 12:47:56

    模板题 注意Pollard_Rho()的写法 第一次比较应该是 a-0步,b-1步 #include <cstdio> #include <cstdlib> #include <algorithm> using std::max; typedef long long ll; int T; ll N; ll Pri[10]={2LL, 3LL, 5LL, 7LL, 11LL, 13LL, 17LL, 19LL, 23LL, 29LL}; ll Rand(){

  • 【python】文件处理行与行之间的内容2019-03-08 10:01:09

    在处理文本文件时,很多时候需要我们处理跨行的数据,但是用for循环处理不是很方便,想了一个歪招来处理不是很大的数据。 核心思想就是将上一行的东西存在一个列表里,到下一行用完这个数据在循环体里将列表初始化,再将这行数据存到列表里,这样循环就可以把两行数据联系起来。 另外这样做的

  • Pollard Rho大质数分解学习笔记2019-02-07 09:48:38

    目录 问题 流程 代码 生日悖论 end 问题 给定n,要求对n质因数分解 普通的试除法已经不能应用于大整数了,我们需要更快的算法 流程 大概就是找出\(n=c*d\) 如果\(c\)是素数,结束,不是继续递归处理。 具体一点的话 1.先对n进行\(miller\_rabin\)测试,是素数就直接结束了 如果不会的

  • Continuity of arithmetic operations2019-02-04 10:39:46

    Arithmetic operations taught in elementary schools are continuous in the high level topological point of view. This signifies that there is literally no clear boundary between simple and complex, low and high concepts. Instead, they both play indispensabl

  • 《Probability for Data Science-Chapter_24》翻译2019-01-22 18:03:27

    面向数据科学的概率论——第二十四章 简单线性回归 原文:https://nbviewer.jupyter.org/github/prob140/textbook/tree/gh-pages/notebooks/Chapter_24/ 译者:ThomasCai 协议:CC BY-NC-SA 4.0 自豪地采用谷歌翻译 文章目录面向数据科学的概率论——第二十四章 简单线性回归00

  • Topologies on product spaces of $\mathbb{R}$ and their relationships2019-01-12 16:01:33

    In this post, I will summarise several topologies established on the product spaces of \(\mathbb{R}\), i.e. \(\mathbb{R}^n\), \(\mathbb{R}^{\omega}\) and \(\mathbb{R}^J\), as well as their relationships. Topologies on product spaces of \(\m

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有