简体   繁体   English

C中的文件冗余

[英]File Redundancy in C

What is meant by "File Redundancy" ?? 什么是“文件冗余”

It would also be helpful if a "C Program to detect File Redundancy" be also given. 如果还给出“用于检测文件冗余的C程序”,则也将很有帮助。

I was asked the above question in an Interview. 采访中有人问我上述问题。 I didnt know the answer to it since I could not understand what they were asking in the first place. 我不知道答案,因为我一开始不明白他们在问什么。 Can anyone help me!!! 谁能帮我!!!

EDIT : I have rephrased the question. 编辑:我改写了这个问题。 I think I have made this more clear! 我想我已经说得更清楚了!

可能意味着重复的源文件。

I hope they are not talking about the Cyclic redundancy check . 我希望他们不要谈论循环冗余校验 The File Redundancy probably means duplicate files located in different folders on the hard drive. 文件冗余可能意味着重复文件位于硬盘驱动器的不同文件夹中。

You can write a program in C that would go through all the files and identify the duplicates. 您可以用C编写一个程序,该程序将遍历所有文件并识别重复项。

This probably intentionally vague interview question seems to explore your knowledge of the term redundancy. 这个可能是故意含糊的面试问题似乎在探索您对术语“冗余”的了解。 I see several possible meanings of file redundancy here: 我在这里看到文件冗余的几种可能含义:

  • Redundant (identical) replicas of a file to ensure availability in case of unavailability of a copy 文件的冗余(相同)副本,以确保在副本不可用时的可用性
  • Accidental redundancy of the content of a single file. 单个文件内容的意外冗余。 You can detect many cases of this redundancy by applying a file compression program to it. 您可以通过对其应用文件压缩程序来检测这种冗余的许多情况。 The more it compresses the more redundant the file content is. 它压缩得越多,文件内容就越多余。
  • Intentional redundancy of a file's content. 文件内容的故意冗余。 An error correcting code can be applied to data. 可以将纠错码应用于数据。 This increases redundancy and allows to correct or detect a certain amount of errors in a damaged file. 这增加了冗余,并允许更正或检测损坏文件中的一定数量的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM