婴儿步大步算法在C#。哈希表的内存不足 [英] Baby-Step Giant Step Algorithm in c#. Hash table out of memory

查看:116
本文介绍了婴儿步大步算法在C#。哈希表的内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用一个哈希表来解决离散算法问题。
我使用克斯小步大步算法。
我的哈希表包含1100万项和值。
我不断收到一个内存不足的异常。
有什么办法来修复呢?或者不同的数据结构使用?
我使用Visual C#速成2010年.NET 4.0框架

I am trying to use a hash table to solve a discrete algorithm problem. I am using Shanks baby step giant step algorithm. My hash table contains about 11,000,000 keys and values. I keep getting an out of memory exception. is there any way to 'fix' this? or a different data structure to use? I am using Visual C# Express 2010 with .NET 4.0 Framework

推荐答案

尝试针对64位平台。 32位可执行文件时经常出现的虚拟内存空间,这些天。

Try targeting a 64-bit platform. 32-bit executables often run out of virtual memory space these days.

这篇关于婴儿步大步算法在C#。哈希表的内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆