For example take this paper[PDF]. If I wanted to add Weather degradation into a clear photograph would it be worth it to look at that paper and try to reverse it? Also is there any specific approach to reversing an algorithm if it is at all possible?
例如,请参阅本文[PDF]。如果我想将天气退化添加到清晰的照片中,是否值得查看该纸张并试图扭转它?如果可能的话,还有任何特定的方法来反转算法吗?
4 个解决方案
#1
Draemon is correct, there is no general approach. In your case, I would read the paper.
守护进程是正确的,没有一般方法。在你的情况下,我会读这篇论文。
Whether you want to add or remove weather degradation, you need to know what weather degradation looks like. That paper will have information on that, and might have an easy answer.
无论您是想添加还是消除天气退化,您都需要了解天气恶化的情况。该论文将有关于此的信息,并可能有一个简单的答案。
An example might be a paper on breaking a substitution cipher. You can certainly read the paper to learn how to encrypt something with a substitution cipher.
一个例子可能是关于打破替代密码的论文。您当然可以阅读本文以了解如何使用替换密码对某些内容进行加密。
#2
There is no general approach. Take multiplying primes vs factoring into primes. It's dead easy to take:
没有一般方法。将素数乘以因子成为素数。这很容易:
A * B = C
and calculate C from A and B. Getting A and B from C is not so easy, even though there's only one solution.
从A和B计算C.即使只有一个解决方案,从C中获取A和B也不是那么容易。
You can see why trying to reverse (in general) the effects of any algorithm isn't so simple!
你可以看到为什么试图反转(一般来说)任何算法的效果都不那么简单!
Yes, in certain cases it may be one useful technique, but if looking at the paper doesn't immediately give you an idea for how you might reverse it, I'd take it as a sign you should probably look for what you're actually after, first.
是的,在某些情况下它可能是一种有用的技术,但如果查看论文并没有立即让你知道如何扭转它,我会把它作为一个标志你应该寻找你的东西实际上之后,首先。
#3
Although that particular technique (of reversing an algorithm) can be extremely useful, I would think instead that finding the correct technique you were looking for would be more beneficial. As far as reversing an algorithm, think of how you reverse an equation in Mathematics, and do something similar - i.e. at each step in the algorithm, attempt to do the reverse step. Note that in some algorithms (lossy compression comes to mind) this is not always possible, as some of the data is lost because of the algorithm.
虽然这种特殊技术(逆转算法)可能非常有用,但我认为找到你正在寻找的正确技术会更有益。就反转算法而言,考虑如何在数学中反转方程,并做类似的事情 - 即在算法的每个步骤中,尝试执行相反的步骤。请注意,在某些算法中(有损压缩会浮现在脑海中),这并不总是可行的,因为有些数据因算法而丢失。
#4
Yes. Just because something disagrees with your philosophy of the world does not make it a bad thing to read. It in fact makes it a good thing to read. Only reading texts which subscribe to your belief system is the equivalent of a person in power surrounding themselves with a group of "yes" men.
是。仅仅因为某些不同意你的世界哲学的东西并没有使它成为一件坏事。事实上它使阅读成为一件好事。只阅读订阅你的信仰体系的文本,相当于一群掌握在一起的“是”的人。
You should be constantly challenging your strongest beliefs to ensure you are on the right path.
你应该不断挑战自己最坚定的信念,以确保你走在正确的道路上。
#1
Draemon is correct, there is no general approach. In your case, I would read the paper.
守护进程是正确的,没有一般方法。在你的情况下,我会读这篇论文。
Whether you want to add or remove weather degradation, you need to know what weather degradation looks like. That paper will have information on that, and might have an easy answer.
无论您是想添加还是消除天气退化,您都需要了解天气恶化的情况。该论文将有关于此的信息,并可能有一个简单的答案。
An example might be a paper on breaking a substitution cipher. You can certainly read the paper to learn how to encrypt something with a substitution cipher.
一个例子可能是关于打破替代密码的论文。您当然可以阅读本文以了解如何使用替换密码对某些内容进行加密。
#2
There is no general approach. Take multiplying primes vs factoring into primes. It's dead easy to take:
没有一般方法。将素数乘以因子成为素数。这很容易:
A * B = C
and calculate C from A and B. Getting A and B from C is not so easy, even though there's only one solution.
从A和B计算C.即使只有一个解决方案,从C中获取A和B也不是那么容易。
You can see why trying to reverse (in general) the effects of any algorithm isn't so simple!
你可以看到为什么试图反转(一般来说)任何算法的效果都不那么简单!
Yes, in certain cases it may be one useful technique, but if looking at the paper doesn't immediately give you an idea for how you might reverse it, I'd take it as a sign you should probably look for what you're actually after, first.
是的,在某些情况下它可能是一种有用的技术,但如果查看论文并没有立即让你知道如何扭转它,我会把它作为一个标志你应该寻找你的东西实际上之后,首先。
#3
Although that particular technique (of reversing an algorithm) can be extremely useful, I would think instead that finding the correct technique you were looking for would be more beneficial. As far as reversing an algorithm, think of how you reverse an equation in Mathematics, and do something similar - i.e. at each step in the algorithm, attempt to do the reverse step. Note that in some algorithms (lossy compression comes to mind) this is not always possible, as some of the data is lost because of the algorithm.
虽然这种特殊技术(逆转算法)可能非常有用,但我认为找到你正在寻找的正确技术会更有益。就反转算法而言,考虑如何在数学中反转方程,并做类似的事情 - 即在算法的每个步骤中,尝试执行相反的步骤。请注意,在某些算法中(有损压缩会浮现在脑海中),这并不总是可行的,因为有些数据因算法而丢失。
#4
Yes. Just because something disagrees with your philosophy of the world does not make it a bad thing to read. It in fact makes it a good thing to read. Only reading texts which subscribe to your belief system is the equivalent of a person in power surrounding themselves with a group of "yes" men.
是。仅仅因为某些不同意你的世界哲学的东西并没有使它成为一件坏事。事实上它使阅读成为一件好事。只阅读订阅你的信仰体系的文本,相当于一群掌握在一起的“是”的人。
You should be constantly challenging your strongest beliefs to ensure you are on the right path.
你应该不断挑战自己最坚定的信念,以确保你走在正确的道路上。