Giter Club home page Giter Club logo

router's Introduction

背景

抛转引玉吧,想通过图形的一些规则,衍生出一些实用的加解密规则


思路

一种未完成的加解密算法,暂且叫router,中文名路径探寻算法

1.在圆形通过一定规则的线条进行分割,如8个分割点,并标注好序号,顺时针方向,如1-8

思考1

2.任意选取一个分割点,如序号8,从8开始依次顺时针方向,连接相邻的两个点,并逐步扩大步长(步长从0,1,2.。。), 如8-1,步长0,然后从1开始,1-3,步长为1。。。依次迭代,如右图序列如下:
开始

路径序号 路径步长
8-1 0
1-3 1
3-6 2
6-2 3
2-7 4
7-5 5
5-3 6

结束

3.直到最后一个点无法再连接其他点,此刻开始对切分号的圆形分别计算对应的面积大小(或者其他大小),并对面积按照边长标注,

思考2

4.记录对应的路径id和区域面积大小

圆点数,方向,路径id,区域大小

spot direction pathId areaSize
8 wise 8118 xx
8 wise 122731 xx
...

目前还差面积大小的输出

行动计划

...

最后: 这只是一个初步的想法,还有很多细节和实现问题,希望有兴趣的同学也可以参考进来或者给出更好的建议。谢谢!!:blush::blush:

router's People

Contributors

vigorsmith avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.